Interface ICommandHandler
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Abstractions.Data
Assembly: Cephalon.Abstractions.dll
Handles a write-side request that does not return a result value.
public interface ICommandHandler<in TCommand> where TCommand : ICommandType Parameters
Section titled “Type Parameters”TCommand
The command type handled by the contract.
Methods
Section titled “Methods”HandleAsync(TCommand, CancellationToken)
Section titled “ HandleAsync(TCommand, CancellationToken)”Handles the supplied command.
ValueTask HandleAsync(TCommand command, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”command TCommand
The command to execute.
cancellationToken CancellationToken
The token that cancels the operation.
Returns
Section titled “Returns”A task that completes when the command has finished running.