| File: Latency\LatencyContextOptions.cs | Web Access |
| Project: src\src\Libraries\Microsoft.Extensions.Telemetry\Microsoft.Extensions.Telemetry.csproj (Microsoft.Extensions.Telemetry) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.Extensions.Diagnostics.Latency; /// <summary> /// Options for LatencyContext. /// </summary> public class LatencyContextOptions { /// <summary> /// Gets or sets a value indicating whether an exception is thrown when using unregistered names. /// </summary> /// <value> /// <see langword="true" /> if the ILatencyContext APIs throws when using unregistered names. <see langword="false" /> if it no-ops. The default value is <see langword="false" />. /// </value> public bool ThrowOnUnregisteredNames { get; set; } }