/
aprogrammer
/
reverse-proxy-ms-yarp
Обзор
Документация
Войти
/
aprogrammer
/
reverse-proxy-ms-yarp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/TelemetryConsumption/NetSecurity/INetSecurityTelemetryConsumer.cs
37 строк
2 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.Security.Authentication; namespace Yarp.Telemetry.Consumption; /// <summary> /// A consumer of System.Net.Security EventSource events. /// </summary> public interface INetSecurityTelemetryConsumer { /// <summary> /// Called before a handshake. /// </summary> /// <param name="timestamp">Timestamp when the event was fired.</param> /// <param name="isServer">Indicates whether we are authenticating as the server.</param> /// <param name="targetHost">Name of the host we are authenticating with.</param> void OnHandshakeStart(DateTime timestamp, bool isServer, string targetHost) { } /// <summary> /// Called after a handshake. /// </summary> /// <param name="timestamp">Timestamp when the event was fired.</param> /// <param name="protocol">The protocol established by the handshake.</param> void OnHandshakeStop(DateTime timestamp, SslProtocols protocol) { } /// <summary> /// Called before <see cref="OnHandshakeStop(DateTime, SslProtocols)"/> if the handshake failed. /// </summary> /// <param name="timestamp">Timestamp when the event was fired.</param> /// <param name="isServer">Indicates whether we were authenticating as the server.</param> /// <param name="elapsed">Time elapsed since the start of the handshake.</param> /// <param name="exceptionMessage">Exception information for the handshake failure.</param> void OnHandshakeFailed(DateTime timestamp, bool isServer, TimeSpan elapsed, string exceptionMessage) { } }