Class CommandInterpreter.CommandHandlerAttribute
Indicates that the method represents command handler.
Inherited Members
Namespace: DotNext.Net.Cluster.Consensus.Raft.Commands
Assembly: DotNext.Net.Cluster.dll
Syntax
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
protected sealed class CommandInterpreter.CommandHandlerAttribute : Attribute
Remarks
The marked method must have the following signature:
[CommandHandler]
public async ValueTask MyHandler(MyCommand command, CancellationToken token)
{
}
Properties
| Edit this page View SourceIsSnapshotHandler
Indicates that attributed handler is a special handler of snapshot log entry.
Declaration
public bool IsSnapshotHandler { get; init; }
Property Value
Type | Description |
---|---|
bool |