Interface IPostProcessorContext<TRequest, TResponse>
defines the generic interface for a post-processor context with specific types for the request and response.
Inherited Members
Namespace: FastEndpoints
Assembly: FastEndpoints.dll
Syntax
public interface IPostProcessorContext<out TRequest, out 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
Request
gets the request object of the generic type TRequest
.
this hides the non-generic version from IPostProcessorContext.
Declaration
TRequest Request { get; }
Property Value
Type | Description |
---|---|
TRequest |
Response
gets the response object of the generic type TResponse
,
which may be null if the response is not available. this hides the non-generic
version from IPostProcessorContext.
Declaration
TResponse? Response { get; }
Property Value
Type | Description |
---|---|
TResponse |