| File: Latency\ILatencyDataExporter.cs | |
| Project: ..\..\..\src\Libraries\Microsoft.Extensions.Telemetry.Abstractions\Microsoft.Extensions.Telemetry.Abstractions.csproj (Microsoft.Extensions.Telemetry.Abstractions) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Threading; using System.Threading.Tasks; namespace Microsoft.Extensions.Diagnostics.Latency; /// <summary> /// Abstraction that is used to export latency data. /// </summary> /// <remarks>This is called when latency context is frozen to export the context's data.</remarks> public interface ILatencyDataExporter { /// <summary> /// Exports latency data. /// </summary> /// <param name="data">The latency context's latency data.</param> /// <param name="cancellationToken">The cancellation token.</param> /// <returns>A <see cref="Task"/> that represents the export operation.</returns> Task ExportAsync(LatencyData data, CancellationToken cancellationToken); }