ServerTimingOptions Class
Definition
- Namespace
- Cuemon.AspNetCore.Diagnostics
- Assemblies
- Cuemon.AspNetCore.dll
Configuration options for ServerTimingMiddleware and related.
public class ServerTimingOptions : TimeMeasureOptions, IValidatableParameterObject, IParameterObject
- Inheritance
-
ServerTimingOptions
- Implements
- Inherited Members
Examples
The following example demonstrates how to configure ServerTimingOptions.
using System;
using Cuemon.AspNetCore.Diagnostics;
namespace MyApp.Examples;
public class ServerTimingOptionsExample
{
public void Demonstrate()
{
var options = new ServerTimingOptions
{
TimeMeasureCompletedThreshold = TimeSpan.FromMilliseconds(10)
};
}
}
Constructors
| Name | Description |
|---|---|
| ServerTimingOptions() | Initializes a new instance of the ServerTimingOptions class. |
Properties
| Name | Description |
|---|---|
| LogLevelSelector | Gets or sets the function delegate that determines the LogLevel for a given ServerTimingMetric. |
| SuppressHeaderPredicate | Gets or sets the predicate that can suppress the Server-Timing HTTP header(s). |
| UseTimeMeasureProfiler | Gets or sets a value indicating whether to apply TimeMeasureProfiler automatically on action methods in a Controller. |
Methods
| Name | Description |
|---|---|
| ValidateOptions() | Determines whether the public read-write properties of this instance are in a valid state. |