Class ConfigurableAsyncResultFilter<TOptions>
- Namespace
- Cuemon.AspNetCore.Mvc.Filters
- Assembly
- Cuemon.AspNetCore.Mvc.dll
A base class implementation of a filter that asynchronously surrounds execution of action results successfully returned from an action.
public abstract class ConfigurableAsyncResultFilter<TOptions> : Configurable<TOptions>, IConfigurable<TOptions>, IAsyncResultFilter, IFilterMetadata where TOptions : class, IParameterObject, new()
Type Parameters
TOptions
The type of the configured options.
- Inheritance
-
Configurable<TOptions>ConfigurableAsyncResultFilter<TOptions>
- Implements
-
IConfigurable<TOptions>IAsyncResultFilterIFilterMetadata
- Derived
- Inherited Members
Constructors
ConfigurableAsyncResultFilter(IOptions<TOptions>)
Initializes a new instance of the ConfigurableAsyncResultFilter<TOptions> class.
protected ConfigurableAsyncResultFilter(IOptions<TOptions> setup)
Parameters
setup
IOptions<TOptions>The IOptions<TOptions> which need to be configured.
ConfigurableAsyncResultFilter(Action<TOptions>)
Initializes a new instance of the ConfigurableAsyncResultFilter<TOptions> class.
protected ConfigurableAsyncResultFilter(Action<TOptions> setup)
Parameters
Methods
OnResultExecutionAsync(ResultExecutingContext, ResultExecutionDelegate)
Called asynchronously before the action result.
public abstract Task OnResultExecutionAsync(ResultExecutingContext context, ResultExecutionDelegate next)
Parameters
context
ResultExecutingContextThe Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext.
next
ResultExecutionDelegateThe Microsoft.AspNetCore.Mvc.Filters.ResultExecutionDelegate. Invoked to execute the next result filter or the result itself.
Returns
See Also
Configurable<TOptions>
IAsyncResultFilter