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)]
protected sealed class CommandInterpreter.CommandHandlerAttribute : Attribute
Remarks
The marked method must have the following signature:
[CommandHandler]
public async ValueTask MyHandler(MyCommand command, CancellationToken token)
{
}