Search Results for

    Show / Hide Table of Contents

    Class PostProcessor<TRequest, TState, TResponse>

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

    Inheritance
    System.Object
    PostProcessor<TRequest, TState, TResponse>
    Implements
    IPostProcessor<TRequest, TResponse>
    Inherited Members
    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 PostProcessor<TRequest, TState, TResponse> : IPostProcessor<TRequest, TResponse> where TState : class, new()
    Type Parameters
    Name Description
    TRequest

    type of the request dto

    TState

    type of the common processor state

    TResponse

    type of the response

    Methods

    PostProcessAsync(TRequest, TState, TResponse, HttpContext, IReadOnlyCollection<ValidationFailure>, CancellationToken)

    this method is called with the given arguments when the post-processor executes.

    Declaration
    public abstract Task PostProcessAsync(TRequest req, TState state, TResponse res, HttpContext ctx, IReadOnlyCollection<ValidationFailure> failures, CancellationToken ct)
    Parameters
    Type Name Description
    TRequest req

    the request dto object

    TState state

    the common processor state object

    TResponse res

    the response dto object

    Microsoft.AspNetCore.Http.HttpContext ctx

    the http context

    System.Collections.Generic.IReadOnlyCollection<FluentValidation.Results.ValidationFailure> failures

    the collection of validation errors of the endpoint

    System.Threading.CancellationToken ct

    cancellation token

    Returns
    Type Description
    System.Threading.Tasks.Task

    Implements

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