Class AnonymousActionRenderer<T>
Inheritance
AnonymousActionRenderer<T>
Assembly: Libplanet.dll
Syntax
public sealed class AnonymousActionRenderer<T> : AnonymousRenderer<T>, IActionRenderer<T>, IRenderer<T> where T : IAction, new()
Type Parameters
Examples
With object initializers, you can easily make an one-use action renderer:
var actionRenderer = new AnonymousActionRenderer<ExampleAction>
{
ActionRenderer = (action, context, nextStates) =>
{
// Implement RenderAction() here.
};
};
Properties
|
Improve this Doc
View Source
ActionErrorRenderer
Declaration
public Action<IAction, IActionContext, Exception>? ActionErrorRenderer { get; set; }
Property Value
|
Improve this Doc
View Source
ActionErrorUnrenderer
Declaration
public Action<IAction, IActionContext, Exception>? ActionErrorUnrenderer { get; set; }
Property Value
|
Improve this Doc
View Source
ActionRenderer
Declaration
public Action<IAction, IActionContext, IAccountStateDelta>? ActionRenderer { get; set; }
Property Value
|
Improve this Doc
View Source
ActionUnrenderer
Declaration
public Action<IAction, IActionContext, IAccountStateDelta>? ActionUnrenderer { get; set; }
Property Value
|
Improve this Doc
View Source
BlockEndRenderer
Declaration
public Action<Block<T>, Block<T>>? BlockEndRenderer { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
RenderAction(IAction, IActionContext, IAccountStateDelta)
Declaration
public void RenderAction(IAction action, IActionContext context, IAccountStateDelta nextStates)
Parameters
|
Improve this Doc
View Source
RenderActionError(IAction, IActionContext, Exception)
Declaration
public void RenderActionError(IAction action, IActionContext context, Exception exception)
Parameters
|
Improve this Doc
View Source
RenderBlockEnd(Block<T>, Block<T>)
Declaration
public void RenderBlockEnd(Block<T> oldTip, Block<T> newTip)
Parameters
Type |
Name |
Description |
Block<T> |
oldTip |
|
Block<T> |
newTip |
|
|
Improve this Doc
View Source
UnrenderAction(IAction, IActionContext, IAccountStateDelta)
Declaration
public void UnrenderAction(IAction action, IActionContext context, IAccountStateDelta nextStates)
Parameters
|
Improve this Doc
View Source
UnrenderActionError(IAction, IActionContext, Exception)
Declaration
public void UnrenderActionError(IAction action, IActionContext context, Exception exception)
Parameters
Implements