Interface IPostProcessor
defines the interface for a post-processor that can perform asynchronous post-processing tasks after a request has been handled.
Namespace: FastEndpoints
Assembly: FastEndpoints.dll
Syntax
public interface IPostProcessor : IProcessor
Methods
PostProcessAsync(IPostProcessorContext, CancellationToken)
asynchronously performs post-processing on the provided context.
Declaration
Task PostProcessAsync(IPostProcessorContext context, CancellationToken ct)
Parameters
Type | Name | Description |
---|---|---|
IPostProcessorContext | context | the post-processor context containing request, response, and other processing details. |
CancellationToken | ct | the CancellationToken to observe while waiting for the task to complete. |
Returns
Type | Description |
---|---|
Task | a Task that represents the asynchronous post-process operation. |