Class TimeMeasureAttribute
Represents an attribute that is used to mark an action method for time measure profiling.
Inheritance
Implements
Inherited Members
Namespace: Cuemon.AspNetCore.Mvc.Filters.Diagnostics
Assembly: Cuemon.AspNetCore.Mvc.dll
Syntax
public class TimeMeasureAttribute : ActionFilterAttribute, IActionFilter, IAsyncActionFilter, IResultFilter, IAsyncResultFilter, IOrderedFilter, IFilterFactory, IFilterMetadata
Constructors
| Improve this DocTimeMeasureAttribute()
Initializes a new instance of the TimeMeasureAttribute class.
Declaration
public TimeMeasureAttribute()
TimeMeasureAttribute(Double, TimeUnit)
Initializes a new instance of the TimeMeasureAttribute class.
Declaration
public TimeMeasureAttribute(double threshold, TimeUnit thresholdTimeUnit)
Parameters
Type | Name | Description |
---|---|---|
System.Double | threshold | The System.Double value that in combination with |
TimeUnit | thresholdTimeUnit | One of the enumeration values that specifies the time unit of |
Properties
| Improve this DocIsReusable
Gets a value that indicates if the result of Microsoft.AspNetCore.Mvc.Filters.IFilterFactory.CreateInstance(System.IServiceProvider) can be reused across requests.
Declaration
public bool IsReusable { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Threshold
Gets or sets the value that in combination with ThresholdTimeUnit specifies the threshold of the action method.
Declaration
public double Threshold { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The threshold value of the action method. |
ThresholdTimeUnit
Gets or sets one of the enumeration values that specifies the time unit of Threshold.
Declaration
public TimeUnit ThresholdTimeUnit { get; set; }
Property Value
Type | Description |
---|---|
TimeUnit |
Methods
| Improve this DocCreateInstance(IServiceProvider)
Creates an instance of the executable filter.
Declaration
public IFilterMetadata CreateInstance(IServiceProvider serviceProvider)
Parameters
Type | Name | Description |
---|---|---|
System.IServiceProvider | serviceProvider | The request System.IServiceProvider. |
Returns
Type | Description |
---|---|
Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata | An instance of the executable filter. |