Class CommandAttribute
Registers command type in the interpreter.
Inherited Members
Namespace: DotNext.Net.Cluster.Consensus.Raft.Commands
Assembly: DotNext.Net.Cluster.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public abstract class CommandAttribute : Attribute
Constructors
| Edit this page View SourceCommandAttribute(int)
Registers command type in the interpreter.
Declaration
protected CommandAttribute(int id)
Parameters
Type | Name | Description |
---|---|---|
int | id | The identifier of the log entry. |
Properties
| Edit this page View SourceId
Gets unique identifier of the log entry.
Declaration
public int Id { get; }
Property Value
Type | Description |
---|---|
int |