/
aprogrammer
/
reverse-proxy-ms-yarp
Обзор
Документация
Войти
/
aprogrammer
/
reverse-proxy-ms-yarp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/TelemetryConsumption/NameResolution/INameResolutionTelemetryConsumer.cs
31 строка
1 KB
Kahbazi
Convert to file-scoped namespace (#1382)
15 ноя 2021, 21:15
Не верифицирован
15 ноя 2021, 21:15
efd2a4c
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; namespace Yarp.Telemetry.Consumption; /// <summary> /// A consumer of System.Net.NameResolution EventSource events. /// </summary> public interface INameResolutionTelemetryConsumer { /// <summary> /// Called before a name resolution. /// </summary> /// <param name="timestamp">Timestamp when the event was fired.</param> /// <param name="hostNameOrAddress">Host name or address we are resolving.</param> void OnResolutionStart(DateTime timestamp, string hostNameOrAddress) { } /// <summary> /// Called after a name resolution. /// </summary> /// <param name="timestamp">Timestamp when the event was fired.</param> void OnResolutionStop(DateTime timestamp) { } /// <summary> /// Called before <see cref="OnResolutionStop(DateTime)"/> if the name resolution failed. /// </summary> /// <param name="timestamp">Timestamp when the event was fired.</param> void OnResolutionFailed(DateTime timestamp) { } }