Class QueryActionFilter
- Namespace
- Cratis.Applications.Queries
- Assembly
- Cratis.Applications.dll
Represents a IAsyncActionFilter for providing a proper QueryResult for post actions.
public class QueryActionFilter : IAsyncActionFilter, IFilterMetadata
- Inheritance
-
QueryActionFilter
- Implements
- Inherited Members
- Extension Methods
Remarks
Initializes a new instance of the QueryActionFilter class.
Constructors
QueryActionFilter(IQueryContextManager, IQueryRenderers, IObservableQueryHandler, ILogger<QueryActionFilter>)
Represents a IAsyncActionFilter for providing a proper QueryResult for post actions.
public QueryActionFilter(IQueryContextManager queryContextManager, IQueryRenderers queryProviders, IObservableQueryHandler webSocketQueryHandler, ILogger<QueryActionFilter> logger)
Parameters
queryContextManagerIQueryContextManagerqueryProvidersIQueryRendererswebSocketQueryHandlerIObservableQueryHandlerloggerILogger<QueryActionFilter>ILogger for logging.
Remarks
Initializes a new instance of the QueryActionFilter class.
Methods
OnActionExecutionAsync(ActionExecutingContext, ActionExecutionDelegate)
Called asynchronously before the action, after model binding is complete.
public Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next)
Parameters
contextActionExecutingContextnextActionExecutionDelegateThe ActionExecutionDelegate. Invoked to execute the next action filter or the action itself.