Class PostProcessorContext<TRequest, TResponse>
represents the context for a post-processing operation with a request and response pair.
Inherited Members
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> |