Class TimeMeasuringFilter
A filter that performs time measure profiling of an action method.
Inheritance
System.Object
TimeMeasuringFilter
Implements
Microsoft.AspNetCore.Mvc.Filters.IActionFilter
Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
Inherited Members
Namespace: Cuemon.AspNetCore.Mvc.Filters.Diagnostics
Assembly: Cuemon.AspNetCore.Mvc.dll
Syntax
public class TimeMeasuringFilter : ConfigurableActionFilter<TimeMeasuringOptions>, IConfigurable<TimeMeasuringOptions>, IActionFilter, IFilterMetadata
Constructors
| Improve this DocTimeMeasuringFilter(IOptions<TimeMeasuringOptions>, IHostingEnvironment)
Initializes a new instance of the TimeMeasuringFilter class.
Declaration
public TimeMeasuringFilter(IOptions<TimeMeasuringOptions> setup, IHostingEnvironment he)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Options.IOptions<TimeMeasuringOptions> | setup | The TimeMeasureOptions which need to be configured. |
Microsoft.Extensions.Hosting.IHostingEnvironment | he | The dependency injected Microsoft.Extensions.Hosting.IHostingEnvironment. |
Methods
| Improve this DocOnActionExecuted(ActionExecutedContext)
Called after the action executes, before the action result.
Declaration
public override void OnActionExecuted(ActionExecutedContext context)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext | context | The Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext. |
Overrides
Cuemon.AspNetCore.Mvc.Filters.ConfigurableActionFilter<Cuemon.AspNetCore.Mvc.Filters.Diagnostics.TimeMeasuringOptions>.OnActionExecuted(Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext)
|
Improve this Doc
OnActionExecuting(ActionExecutingContext)
Called before the action executes, after model binding is complete.
Declaration
public override void OnActionExecuting(ActionExecutingContext context)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext | context | The Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext. |
Overrides
Cuemon.AspNetCore.Mvc.Filters.ConfigurableActionFilter<Cuemon.AspNetCore.Mvc.Filters.Diagnostics.TimeMeasuringOptions>.OnActionExecuting(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext)
Implements
Microsoft.AspNetCore.Mvc.Filters.IActionFilter
Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
Extension Methods
See Also
ConfigurableActionFilter<TOptions>
Microsoft.AspNetCore.Mvc.Filters.IActionFilter