Interface ISocketsTelemetryConsumer
A consumer of System.Net.Sockets EventSource events.
Namespace: Yarp.Telemetry.Consumption
Assembly: Yarp.Telemetry.Consumption.dll
Syntax
public interface ISocketsTelemetryConsumer
Methods
| Improve this Doc View SourceOnConnectFailed(DateTime, SocketError, String)
Called before OnConnectStop(DateTime) if the connect failed.
Declaration
virtual void OnConnectFailed(DateTime timestamp, SocketError error, string exceptionMessage)
Parameters
Type | Name | Description |
---|---|---|
DateTime | timestamp | Timestamp when the event was fired. |
SocketError | error | |
System.String | exceptionMessage | Exception information for the connect failure. |
OnConnectStart(DateTime, String)
Called before a Socket connect.
Declaration
virtual void OnConnectStart(DateTime timestamp, string address)
Parameters
Type | Name | Description |
---|---|---|
DateTime | timestamp | Timestamp when the event was fired. |
System.String | address | Socket address we are connecting to. |
OnConnectStop(DateTime)
Called after a Socket connect.
Declaration
virtual void OnConnectStop(DateTime timestamp)
Parameters
Type | Name | Description |
---|---|---|
DateTime | timestamp | Timestamp when the event was fired. |