Search Results for

    Show / Hide Table of Contents

    Interface IEventHandler<TEvent>

    interface to be implemented by event handlers

    Namespace: FastEndpoints
    Assembly: FastEndpoints.dll
    Syntax
    public interface IEventHandler<TEvent> : IEventHandler
    Type Parameters
    Name Description
    TEvent

    the type of the event model to be handled by this event handler

    Methods

    HandleAsync(TEvent, CancellationToken)

    the handler logic for the event handler

    Declaration
    Task HandleAsync(TEvent eventModel, CancellationToken ct = default(CancellationToken))
    Parameters
    Type Name Description
    TEvent eventModel

    the input event model

    System.Threading.CancellationToken ct

    optional cancellation token

    Returns
    Type Description
    System.Threading.Tasks.Task
    In This Article
    Back to top Developed by Đĵ ΝιΓΞΗΛψΚ and contributors / Licensed under MIT / Website generated by DocFX