Search Results for

    Show / Hide Table of Contents

    Class PostProcessorContext<TRequest, TResponse>

    represents the context for a post-processing operation with a request and response pair.

    Inheritance
    object
    PostProcessorContext<TRequest, TResponse>
    Implements
    IPostProcessorContext<TRequest, TResponse>
    IPostProcessorContext
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: FastEndpoints
    Assembly: FastEndpoints.dll
    Syntax
    public sealed class PostProcessorContext<TRequest, TResponse> : IPostProcessorContext<TRequest, TResponse>, IPostProcessorContext
    Type Parameters
    Name Description
    TRequest

    the type of the request object, which must be non-nullable.

    TResponse

    the type of the response object.

    Properties

    ExceptionDispatchInfo

    gets the ExceptionDispatchInfo if an exception was captured during the processing. may be null if no exception was captured.

    Declaration
    public ExceptionDispatchInfo? ExceptionDispatchInfo { get; init; }
    Property Value
    Type Description
    ExceptionDispatchInfo

    HttpContext

    gets the HttpContext associated with the current request and response.

    Declaration
    public HttpContext HttpContext { get; init; }
    Property Value
    Type Description
    HttpContext

    Request

    gets the request associated with the post-processing context. may be null if request binding has failed.

    Declaration
    public TRequest? Request { get; init; }
    Property Value
    Type Description
    TRequest

    Response

    gets the response associated with the post-processing context. may be null if the response is not available or not yet created.

    Declaration
    public TResponse? Response { get; init; }
    Property Value
    Type Description
    TResponse

    ValidationFailures

    gets a collection of FluentValidation.Results.ValidationFailure instances that describe any validation failures.

    Declaration
    public IReadOnlyCollection<ValidationFailure> ValidationFailures { get; init; }
    Property Value
    Type Description
    IReadOnlyCollection<ValidationFailure>

    Implements

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