ICommandHandler<TCommand, TResult> interface
Namespace: Vitreous.Abstractions
Assembly: Vitreous.dll
Handles a command that returns a value of type TResult.
public interface ICommandHandler<TCommand, TResult> where TCommand : ICommand<TResult>Type Parameters
Section titled “Type Parameters”TCommand
The command type.
TResult
The success value type.
Methods
Section titled “Methods”Handle(TCommand, CancellationToken)
Section titled “ Handle(TCommand, CancellationToken)”Handles the given command and returns a result.
ValueTask<Result<TResult>> Handle(TCommand command, CancellationToken ct = default)Parameters
Section titled “Parameters”command TCommand