Class TimeMeasuringOptions
Configuration options for TimeMeasuringFilter.
Inherited Members
Namespace: Cuemon.AspNetCore.Mvc.Filters.Diagnostics
Assembly: Cuemon.AspNetCore.Mvc.dll
Syntax
public class TimeMeasuringOptions : TimeMeasureOptions
Constructors
| Improve this DocTimeMeasuringOptions()
Initializes a new instance of the TimeMeasuringOptions class.
Declaration
public TimeMeasuringOptions()
Remarks
The following table shows the initial property values for an instance of TimeMeasureOptions.
Property | Initial Value |
---|---|
TimeMeasureCompletedThreshold | System.TimeSpan.Zero |
HeaderName | X-Action-Profiler |
SuppressHeaderPredicate | _ => false |
UseServerTimingHeader | true |
Properties
| Improve this DocHeaderName
Gets or sets the name of the custom time-measured HTTP header.
Declaration
public string HeaderName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the custom time-measured HTTP header. |
SuppressHeaderPredicate
Gets or sets the predicate that can suppress either of the time-measured HTTP headers.
Declaration
public Func<IHostingEnvironment, bool> SuppressHeaderPredicate { get; set; }
Property Value
Type | Description |
---|---|
System.Func<Microsoft.Extensions.Hosting.IHostingEnvironment, System.Boolean> | The function delegate that can determine if either of the time-measured HTTP headers should be suppressed. |
UseCustomHeader
Gets or sets a value indicating whether to include the custom HeaderName specifying how long an action took to execute.
Declaration
public bool UseCustomHeader { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
UseServerTimingHeader
Gets or sets a value indicating whether to include a Server-Timing HTTP header specifying how long an action took to execute.
Declaration
public bool UseServerTimingHeader { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|