Search Results for

    Show / Hide Table of Contents

    Interface IPostProcessorContext

    defines the basic interface for a post-processor context, containing essential properties to access request, response, and associated processing details.

    Namespace: FastEndpoints
    Assembly: FastEndpoints.dll
    Syntax
    public interface IPostProcessorContext

    Properties

    ExceptionDispatchInfo

    gets information about any exception that was thrown during processing. this will be null if no exception has occurred.

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

    HasExceptionOccurred

    determines if an exception has occurred during processing.

    Declaration
    bool HasExceptionOccurred { get; }
    Property Value
    Type Description
    bool

    HasValidationFailures

    determines if any validation failures have occurred during processing.

    Declaration
    bool HasValidationFailures { get; }
    Property Value
    Type Description
    bool

    HttpContext

    gets the HttpContext associated with the current request and response.

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

    Request

    gets the request object, which may be null if request binding has failed.

    Declaration
    object? Request { get; }
    Property Value
    Type Description
    object

    Response

    gets the response object, which may be null if the response is not available.

    Declaration
    object? Response { get; }
    Property Value
    Type Description
    object

    ValidationFailures

    gets a read-only collection of FluentValidation.Results.ValidationFailure that occurred during processing.

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

    Methods

    MarkExceptionAsHandled()

    call this method if you're handling the captured exception (via ExceptionDispatchInfo) in a post-processor and the exception should not be thrown. not calling this method will result in the captured exception being thrown after all the post-processors have run.

    Declaration
    void MarkExceptionAsHandled()
    In this article
    Back to top Developed by Đĵ ΝιΓΞΗΛψΚ and contributors / Licensed under MIT / Website generated by DocFX