Class PreProcessorContext<TRequest>
represents the context for a pre-processing operation with a request.
Inherited Members
Namespace: FastEndpoints
Assembly: FastEndpoints.dll
Syntax
public sealed class PreProcessorContext<TRequest> : IPreProcessorContext<TRequest>, IPreProcessorContext
Type Parameters
Name | Description |
---|---|
TRequest | the type of the request object, which must be non-nullable. |
Properties
HttpContext
gets the HttpContext associated with the current request.
Declaration
public HttpContext HttpContext { get; init; }
Property Value
Type | Description |
---|---|
HttpContext |
Request
gets the request associated with the pre-processing context.
Declaration
public TRequest Request { get; init; }
Property Value
Type | Description |
---|---|
TRequest |
ValidationFailures
gets a collection of FluentValidation.Results.ValidationFailure instances that describe any validation failures.
Declaration
public List<ValidationFailure> ValidationFailures { get; init; }
Property Value
Type | Description |
---|---|
List<ValidationFailure> |