Table of Contents

Class ServerTimingFilter

Namespace
Cuemon.AspNetCore.Mvc.Filters.Diagnostics
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
IActionFilter
IFilterMetadata
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 IHostEnvironment

The 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 ActionExecutedContext

The 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 ActionExecutingContext

The Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext.

See Also

ConfigurableActionFilter<TOptions>
IActionFilter