TranslationDelegate

Delegate

Represents a delegate that translates a VNode into a IRenderable.

Namespace: RazorConsole.Core.Abstractions.Rendering
Assembly: RazorConsole.Core

Definition

public delegate IRenderable TranslationDelegate(VNode node)
NameTypeDescription
nodeVNodeThe virtual DOM node to translate.
Returns:IRenderableA IRenderable that represents the translated node.
Remarks:When a middleware cannot handle a particular VNode, it should invoke this delegate with the node to pass it to the next middleware in the chain. If no middleware in the chain can handle the node, the terminal fallback will throw an InvalidOperationException.

Constructors

1
NameTypeDescription
TranslationDelegate(object, nint)()Constructor

Methods

3
NameTypeDescription
BeginInvoke(VNode, AsyncCallback, object)()IAsyncResult
EndInvoke(IAsyncResult)()IRenderable
Invoke(VNode)()IRenderable