Search Results for

    Show / Hide Table of Contents

    Class GlobalPostProcessor<TState>

    inherit this class to create a global post-processor with access to the common processor state of the endpoint

    Inheritance
    object
    GlobalPostProcessor<TState>
    Implements
    IGlobalPostProcessor
    IPostProcessor
    IProcessor
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: FastEndpoints
    Assembly: FastEndpoints.dll
    Syntax
    public abstract class GlobalPostProcessor<TState> : IGlobalPostProcessor, IPostProcessor, IProcessor where TState : class, new()
    Type Parameters
    Name Description
    TState

    type of the common processor state

    Methods

    PostProcessAsync(IPostProcessorContext, TState, CancellationToken)

    implement this method to define the post-processing logic using the provided context and state.

    Declaration
    public abstract Task PostProcessAsync(IPostProcessorContext context, TState state, CancellationToken ct)
    Parameters
    Type Name Description
    IPostProcessorContext context

    the context object encapsulating all necessary information for post-processing.

    TState state

    the common processor state object, derived from the HttpContext or newly instantiated.

    CancellationToken ct

    cancellation token.

    Returns
    Type Description
    Task

    a Task representing the asynchronous operation.

    Implements

    IGlobalPostProcessor
    IPostProcessor
    IProcessor
    In this article
    Back to top Developed by Đĵ ΝιΓΞΗΛψΚ and contributors / Licensed under MIT / Website generated by DocFX