Search Results for

    Show / Hide Table of Contents

    Class CommandHandler<TCommand>

    inherit this base class if you'd like to manipulate validation state of the calling endpoint from within the command handler.

    Inheritance
    System.Object
    CommandHandlerBase<TCommand>
    CommandHandler<TCommand>
    Implements
    ICommandHandler<TCommand>
    ICommandHandler
    Inherited Members
    CommandHandlerBase<TCommand>.ValidationFailures
    CommandHandlerBase<TCommand>.ValidationFailed
    CommandHandlerBase<TCommand>.AddError(String, String, Severity)
    CommandHandlerBase<TCommand>.AddError(Expression<Func<TCommand, Object>>, String, String, Severity)
    CommandHandlerBase<TCommand>.ThrowError(String)
    CommandHandlerBase<TCommand>.ThrowError(Expression<Func<TCommand, Object>>, String)
    CommandHandlerBase<TCommand>.ThrowIfAnyErrors()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: FastEndpoints
    Assembly: FastEndpoints.dll
    Syntax
    public abstract class CommandHandler<TCommand> : CommandHandlerBase<TCommand>, ICommandHandler<TCommand>, ICommandHandler where TCommand : ICommand
    Type Parameters
    Name Description
    TCommand

    the type of the command that will be handled by this command handler

    Methods

    ExecuteAsync(TCommand, CancellationToken)

    inherit this base class if you'd like to manipulate validation state of the calling endpoint from within the command handler.

    Declaration
    public abstract Task ExecuteAsync(TCommand command, CancellationToken ct = default(CancellationToken))
    Parameters
    Type Name Description
    TCommand command
    System.Threading.CancellationToken ct
    Returns
    Type Description
    System.Threading.Tasks.Task

    Implements

    ICommandHandler<TCommand>
    ICommandHandler
    In This Article
    Back to top Developed by Đĵ ΝιΓΞΗΛψΚ and contributors / Licensed under MIT / Website generated by DocFX