Class GlobalPostProcessor<TState>
inherit this class to create a global post-processor with access to the common processor state of the endpoint
Inherited Members
Namespace: FastEndpoints
Assembly: FastEndpoints.dll
Syntax
public abstract class GlobalPostProcessor<TState> : IGlobalPostProcessor, IPostProcessor, IProcessor where TState : class, new()
Type Parameters
Name | Description |
---|---|
TState | type of the common processor state |
Methods
PostProcessAsync(IPostProcessorContext, TState, CancellationToken)
implement this method to define the post-processing logic using the provided context and state.
Declaration
public abstract Task PostProcessAsync(IPostProcessorContext context, TState state, CancellationToken ct)
Parameters
Type | Name | Description |
---|---|---|
IPostProcessorContext | context | the context object encapsulating all necessary information for post-processing. |
TState | state | the common processor state object, derived from the HttpContext or newly instantiated. |
CancellationToken | ct | cancellation token. |
Returns
Type | Description |
---|---|
Task | a Task representing the asynchronous operation. |