/
aprogrammer
/
reverse-proxy-ms-yarp
Обзор
Документация
Войти
/
aprogrammer
/
reverse-proxy-ms-yarp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/TelemetryConsumption/Sockets/ISocketsTelemetryConsumer.cs
34 строки
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; using System.Net.Sockets; namespace Yarp.Telemetry.Consumption; /// <summary> /// A consumer of System.Net.Sockets EventSource events. /// </summary> public interface ISocketsTelemetryConsumer { /// <summary> /// Called before a Socket connect. /// </summary> /// <param name="timestamp">Timestamp when the event was fired.</param> /// <param name="address">Socket address we are connecting to.</param> void OnConnectStart(DateTime timestamp, string address) { } /// <summary> /// Called after a Socket connect. /// </summary> /// <param name="timestamp">Timestamp when the event was fired.</param> void OnConnectStop(DateTime timestamp) { } /// <summary> /// Called before <see cref="OnConnectStop(DateTime)"/> if the connect failed. /// </summary> /// <param name="timestamp">Timestamp when the event was fired.</param> /// <param name="error"><see cref="SocketError"/> information for the connect failure.</param> /// <param name="exceptionMessage">Exception information for the connect failure.</param> void OnConnectFailed(DateTime timestamp, SocketError error, string exceptionMessage) { } }