Class CommandRegistration
public class CommandRegistration : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IAsyncDisposable
- Inheritance
-
CommandRegistration
- Implements
- Inherited Members
Properties
Add
Add commands once.
[Parameter]
public Func<CommandContext, IEnumerable<Command>>? Add { get; set; }
Property Value
AddAsync
Add commands once.
[Parameter]
public Func<CommandContext, IAsyncEnumerable<Command>>? AddAsync { get; set; }
Property Value
CommandContext
[CascadingParameter]
public CommandContext? CommandContext { get; set; }
Property Value
OnCleanup
Called whenever commands are removed, due to dispose or replace.
[Parameter]
public EventCallback<CommandContext> OnCleanup { get; set; }
Property Value
Replace
Add or re-add commands when rendered - use with @key.
[Parameter]
public Func<CommandContext, IEnumerable<Command>>? Replace { get; set; }
Property Value
ReplaceAsync
Add or re-add commands when rendered - use with @key.
[Parameter]
public Func<CommandContext, IAsyncEnumerable<Command>>? ReplaceAsync { get; set; }
Property Value
Reset
Remove existing commands once.
[Parameter]
public bool Reset { get; set; }
Property Value
Validate
Install a context for validating command executions.
[Parameter]
public ValidationContext? Validate { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builderRenderTreeBuilder
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
public ValueTask DisposeAsync()
Returns
- ValueTask
A task that represents the asynchronous dispose operation.
OnParametersSetAsync()
Method invoked when the component has received parameters from its parent in the render tree, and the incoming values have been assigned to properties.
protected override Task OnParametersSetAsync()