Class ConfigurableAsyncResultFilter<TOptions>
A base class implementation of a filter that asynchronously surrounds execution of action results successfully returned from an action.
Implements
Inherited Members
Namespace: Cuemon.AspNetCore.Mvc.Filters
Assembly: Cuemon.AspNetCore.Mvc.dll
Syntax
public abstract class ConfigurableAsyncResultFilter<TOptions> : Configurable<TOptions>, IConfigurable<TOptions>, IAsyncResultFilter, IFilterMetadata where TOptions : class, new()
Type Parameters
Name | Description |
---|---|
TOptions | The type of the configured options. |
Constructors
| Improve this DocConfigurableAsyncResultFilter(IOptions<TOptions>)
Initializes a new instance of the ConfigurableAsyncResultFilter<TOptions> class.
Declaration
protected ConfigurableAsyncResultFilter(IOptions<TOptions> setup)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Options.IOptions<TOptions> | setup | The Microsoft.Extensions.Options.IOptions<TOptions> which need to be configured. |
ConfigurableAsyncResultFilter(Action<TOptions>)
Initializes a new instance of the ConfigurableAsyncResultFilter<TOptions> class.
Declaration
protected ConfigurableAsyncResultFilter(Action<TOptions> setup)
Parameters
Type | Name | Description |
---|---|---|
System.Action<TOptions> | setup | The System.Action<T> which need to be configured. |
Methods
| Improve this DocOnResultExecutionAsync(ResultExecutingContext, ResultExecutionDelegate)
Called asynchronously before the action result.
Declaration
public abstract Task OnResultExecutionAsync(ResultExecutingContext context, ResultExecutionDelegate next)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext | context | The Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext. |
Microsoft.AspNetCore.Mvc.Filters.ResultExecutionDelegate | next | The Microsoft.AspNetCore.Mvc.Filters.ResultExecutionDelegate. Invoked to execute the next result filter or the result itself. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task that on completion indicates the filter has executed. |