Class CommandActionFilter
- Namespace
- Cratis.Arc.Commands
- Assembly
- Cratis.Arc.dll
Represents a IAsyncActionFilter for providing a proper CommandResult<TResponse> for post actions.
public class CommandActionFilter : IAsyncActionFilter, IFilterMetadata
- Inheritance
-
CommandActionFilter
- Implements
- Inherited Members
- Extension Methods
Constructors
CommandActionFilter(ICommandContextModifier, ICommandContextValuesBuilder, IActivitySource<CommandActionFilter>)
Represents a IAsyncActionFilter for providing a proper CommandResult<TResponse> for post actions.
public CommandActionFilter(ICommandContextModifier contextModifier, ICommandContextValuesBuilder contextValuesBuilder, IActivitySource<CommandActionFilter> activitySource)
Parameters
contextModifierICommandContextModifierThe ICommandContextModifier to use for setting the current command context.
contextValuesBuilderICommandContextValuesBuilderThe ICommandContextValuesBuilder to use for building command context values.
activitySourceIActivitySource<CommandActionFilter>The IActivitySource<T> for tracing.
Methods
OnActionExecutionAsync(ActionExecutingContext, ActionExecutionDelegate)
public Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next)
Parameters
contextActionExecutingContextnextActionExecutionDelegate