Class CommandAttribute<TCommand>
Registers command type in the interpreter.
Inherited Members
Namespace: DotNext.Net.Cluster.Consensus.Raft.Commands
Assembly: DotNext.Net.Cluster.dll
Syntax
public sealed class CommandAttribute<TCommand> : CommandAttribute where TCommand : notnull, ISerializable<TCommand>
Type Parameters
Name | Description |
---|---|
TCommand | The type of the command. |
Remarks
Initializes a new attribute.
Constructors
| Edit this page View SourceCommandAttribute(int)
Registers command type in the interpreter.
Declaration
public CommandAttribute(int id)
Parameters
Type | Name | Description |
---|---|---|
int | id | The identifier of the log entry. |
Remarks
Initializes a new attribute.