Class CorrelationIdActionFilter
- Namespace
- Cratis.Applications.Execution
- Assembly
- Cratis.Applications.dll
Represents an implementation of IAsyncActionFilter that sets the correlation ID for the request.
public class CorrelationIdActionFilter : IAsyncActionFilter, IFilterMetadata
- Inheritance
-
CorrelationIdActionFilter
- Implements
- Inherited Members
Constructors
CorrelationIdActionFilter(IOptions<ApplicationModelOptions>)
Represents an implementation of IAsyncActionFilter that sets the correlation ID for the request.
public CorrelationIdActionFilter(IOptions<ApplicationModelOptions> options)
Parameters
options
IOptions<ApplicationModelOptions>The options for the correlation ID.
Methods
OnActionExecutionAsync(ActionExecutingContext, ActionExecutionDelegate)
Called asynchronously before the action, after model binding is complete.
public Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next)
Parameters
context
ActionExecutingContextnext
ActionExecutionDelegateThe ActionExecutionDelegate. Invoked to execute the next action filter or the action itself.