Class ServerTimingFilter
- Assembly
- Cuemon.AspNetCore.Mvc.dll
A filter that performs time measure profiling of action methods.
public class ServerTimingFilter : ConfigurableActionFilter<ServerTimingOptions>, IConfigurable<ServerTimingOptions>, IActionFilter, IFilterMetadata
- Inheritance
-
ServerTimingFilter
- Implements
-
IActionFilterIFilterMetadata
- Inherited Members
Constructors
ServerTimingFilter(IOptions<ServerTimingOptions>, IHostEnvironment, ILogger<ServerTimingFilter>)
Initializes a new instance of the ServerTimingFilter class.
public ServerTimingFilter(IOptions<ServerTimingOptions> setup, IHostEnvironment environment, ILogger<ServerTimingFilter> logger)
Parameters
setup
IOptions<ServerTimingOptions>The TimeMeasureOptions which need to be configured.
environment
IHostEnvironmentThe dependency injected IHostEnvironment.
logger
ILogger<ServerTimingFilter>The dependency injected ILogger<TCategoryName>.
Methods
OnActionExecuted(ActionExecutedContext)
Called after the action executes, before the action result.
public override void OnActionExecuted(ActionExecutedContext context)
Parameters
context
ActionExecutedContextThe Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext.
OnActionExecuting(ActionExecutingContext)
Called before the action executes, after model binding is complete.
public override void OnActionExecuting(ActionExecutingContext context)
Parameters
context
ActionExecutingContextThe Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext.
See Also
ConfigurableActionFilter<TOptions>
IActionFilter