TranslationDelegate
DelegateRepresents a delegate that translates a VNode into a IRenderable.
Namespace:
RazorConsole.Core.Abstractions.RenderingAssembly:
RazorConsole.CoreDefinition
public delegate IRenderable TranslationDelegate(VNode node)| Name | Type | Description |
|---|---|---|
node | VNode | The virtual DOM node to translate. |
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| Name | Type | Description |
|---|---|---|
TranslationDelegate(object, nint)() | Constructor | — |
Methods
3| Name | Type | Description |
|---|---|---|
BeginInvoke(VNode, AsyncCallback, object)() | IAsyncResult | — |
EndInvoke(IAsyncResult)() | IRenderable | — |
Invoke(VNode)() | IRenderable | — |