Class PolicyActionsRegistry
Inheritance
Namespace: Libplanet.Action
Assembly: Libplanet.Action.dll
Syntax
public class PolicyActionsRegistry : object
Constructors
| Improve this Doc View SourcePolicyActionsRegistry(Nullable<ImmutableArray<IAction>>, Nullable<ImmutableArray<IAction>>, Nullable<ImmutableArray<IAction>>, Nullable<ImmutableArray<IAction>>)
A class containing policy actions to evaluate at each situation.
Declaration
public PolicyActionsRegistry(ImmutableArray<IAction>? beginBlockActions = null, ImmutableArray<IAction>? endBlockActions = null, ImmutableArray<IAction>? beginTxActions = null, ImmutableArray<IAction>? endTxActions = null)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<ImmutableArray<IAction>> | beginBlockActions | A list of block actions to evaluate at the beginning for each IPreEvaluationBlock that gets evaluated. Note the order of the returned list determines the execution order. |
System.Nullable<ImmutableArray<IAction>> | endBlockActions | A list of block actions to evaluate at the end for each IPreEvaluationBlock that gets evaluated. Note the order of the returned list determines the execution order. |
System.Nullable<ImmutableArray<IAction>> | beginTxActions | A list of block actions to evaluate at the beginning for each Transaction that gets evaluated. Note the order of the returned list determines the execution order. |
System.Nullable<ImmutableArray<IAction>> | endTxActions | A list of block actions to evaluate at the end for each Transaction that gets evaluated. Note the order of the returned list determines the execution order. |
Properties
| Improve this Doc View SourceBeginBlockActions
An array of IAction to execute and be rendered at the beginning for every block, if any.
Declaration
public ImmutableArray<IAction> BeginBlockActions { get; }
Property Value
Type | Description |
---|---|
ImmutableArray<IAction> |
BeginTxActions
An array of IAction to execute and be rendered at the beginning for every transaction, if any.
Declaration
public ImmutableArray<IAction> BeginTxActions { get; }
Property Value
Type | Description |
---|---|
ImmutableArray<IAction> |
EndBlockActions
An array of IAction to execute and be rendered at the end for every block, if any.
Declaration
public ImmutableArray<IAction> EndBlockActions { get; }
Property Value
Type | Description |
---|---|
ImmutableArray<IAction> |
EndTxActions
An array of IAction to execute and be rendered at the end for every transaction, if any.
Declaration
public ImmutableArray<IAction> EndTxActions { get; }
Property Value
Type | Description |
---|---|
ImmutableArray<IAction> |