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

contextModifier ICommandContextModifier

The ICommandContextModifier to use for setting the current command context.

contextValuesBuilder ICommandContextValuesBuilder

The ICommandContextValuesBuilder to use for building command context values.

activitySource IActivitySource<CommandActionFilter>

The IActivitySource<T> for tracing.

Methods

OnActionExecutionAsync(ActionExecutingContext, ActionExecutionDelegate)

public Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next)

Parameters

context ActionExecutingContext
next ActionExecutionDelegate

Returns

Task