Skip to content

ICommandHandler<TCommand> interface

Namespace: Vitreous.Abstractions
Assembly: Vitreous.dll

Handles a command that does not return a meaningful value.

public interface ICommandHandler<TCommand> where TCommand : ICommand

TCommand

The command type.

Handles the given command and returns a result.

ValueTask<Result> Handle(TCommand command, CancellationToken ct = default)

command TCommand

ct CancellationToken

ValueTask<Result>