/
aprogrammer
/
reverse-proxy-ms-yarp
Обзор
Документация
Войти
/
aprogrammer
/
reverse-proxy-ms-yarp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/TelemetryConsumption/WebSockets/IWebSocketsTelemetryConsumer.cs
22 строки
945 B
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 Yarp.ReverseProxy.WebSockets EventSource events. /// </summary> public interface IWebSocketsTelemetryConsumer { /// <summary> /// Called when a WebSockets connection is closed. /// </summary> /// <param name="timestamp">Timestamp when the event was fired.</param> /// <param name="establishedTime">Timestamp when the connection upgrade completed.</param> /// <param name="closeReason">The reason the WebSocket connection closed.</param> /// <param name="messagesRead">Messages read by the destination server.</param> /// <param name="messagesWritten">Messages sent by the destination server.</param> void OnWebSocketClosed(DateTime timestamp, DateTime establishedTime, WebSocketCloseReason closeReason, long messagesRead, long messagesWritten); }