Table of Contents

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

queryContextManager IQueryContextManager

IQueryContextManager.

queryProviders IQueryRenderers

IQueryRenderers.

webSocketQueryHandler IObservableQueryHandler

IObservableQueryHandler.

logger ILogger<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

context ActionExecutingContext

The ActionExecutingContext.

next ActionExecutionDelegate

The ActionExecutionDelegate. Invoked to execute the next action filter or the action itself.

Returns

Task

A Task that on completion indicates the filter has executed.