Class ChainOperationContextFeats
Features for a chain operation context or step.
public class ChainOperationContextFeats
- Inheritance
-
ChainOperationContextFeats
- Derived
- Inherited Members
Constructors
ChainOperationContextFeats()
Initializes a new instance of the ChainOperationContextFeats class.
public ChainOperationContextFeats()
ChainOperationContextFeats(ChainOperationContextFeats)
Initializes a new instance of the ChainOperationContextFeats class from another one.
public ChainOperationContextFeats(ChainOperationContextFeats feats)
Parameters
feats
ChainOperationContextFeatsThe source feats.
Properties
Features
Gets the features.
public List<OperationFeature> Features { get; }
Property Value
NodeFeatures
Gets the node features dictionary, where the key is a tuple of the version tag and the node ID, and the value is a list of features.
public Dictionary<string, List<OperationFeature>> NodeFeatures { get; }
Property Value
Methods
CopyTaggedNodeFeatures(string, string, bool)
Copies the features from a tagged set to another.
public void CopyTaggedNodeFeatures(string sourceTag, string targetTag, bool includeShortLived = false)
Parameters
sourceTag
stringThe source tag.
targetTag
stringThe target tag.
includeShortLived
boolTrue to include in the copy also the short-lived features in source.
Exceptions
- ArgumentNullException
sourceTag or targetTag
GetNodeFeatures(int, IList<string>)
Gets the features for the node with the specified ID by collecting them from the features of all the specified tags, in that order.
public IList<Feature> GetNodeFeatures(int id, IList<string> tags)
Parameters
Returns
Exceptions
UpdateFeatures<T>(IList<OperationFeature>, string?, IList<ChainNode<T>>?)
Updates the features of this context and/or of the nodes
from the specified source features.
public void UpdateFeatures<T>(IList<OperationFeature> sources, string? tag = null, IList<ChainNode<T>>? nodes = null)
Parameters
sources
IList<OperationFeature>The source features.
tag
stringThe tag the features belong to.
nodes
IList<ChainNode<T>>The nodes targeted in the update when any source features targets nodes instead of context.
Type Parameters
T
The data type of nodes.
Exceptions
- ArgumentNullException
sources