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.
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> |