You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicclassSampleExecutionFilter:IExecutionFilter{asyncTaskIExecutionFilter.ExecuteAsync<TCommand>(ICommandContext<TCommand>context,CommandFilterDelegate<TCommand>next){// do something beforeawaitnext(context);// do something after}asyncTaskIExecutionFilter.ExecuteAsync<TEvent>(IEventContext<TEvent>context,EventFilterDelegate<TEvent>next){// do something beforeawaitnext(context);// do something after}}
The text was updated successfully, but these errors were encountered:
Adding support for execution filters will help minimizing the risk of cross-cutting concerns polluting the handlers.
A filter could be implementing an
IExecutionFilter
interface like the following.Here is a sample of a filter
The text was updated successfully, but these errors were encountered: