Show / Hide Table of Contents

Class PolicyActionsRegistry

Inheritance
System.Object
PolicyActionsRegistry
Implements
IPolicyActionsRegistry
Namespace: Libplanet.Action
Assembly: Libplanet.Action.dll
Syntax
public class PolicyActionsRegistry : object, IPolicyActionsRegistry

Constructors

| Improve this Doc View Source

PolicyActionsRegistry(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 Source

BeginBlockActions

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

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>

Implements

IPolicyActionsRegistry
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium