Interface ICommand<TResult>
Namespace: Momentum.Extensions.Abstractions.Messaging
Assembly: Momentum.Extensions.Abstractions.dll
Represents a command that can be sent through the message bus and produces a result.
csharp
public interface ICommand<out TResult>
Type Parameters
TResult
The type of result produced by the command.
Remarks
This is a marker interface used by the messaging infrastructure to identify command messages. Commands typically represent actions that change the state of the system and return a result.
Properties
Empty
Gets an empty result for this command type.
csharp
TResult? Empty { get; }
Property Value
TResult?