Share via


ISocketsTelemetryConsumer.OnConnectFailed Method

Definition

Called before OnConnectStop(DateTime) if the connect failed.

public virtual void OnConnectFailed(DateTime timestamp, System.Net.Sockets.SocketError error, string exceptionMessage);
abstract member OnConnectFailed : DateTime * System.Net.Sockets.SocketError * string -> unit
override this.OnConnectFailed : DateTime * System.Net.Sockets.SocketError * string -> unit
Public Overridable Sub OnConnectFailed (timestamp As DateTime, error As SocketError, exceptionMessage As String)

Parameters

timestamp
DateTime

Timestamp when the event was fired.

error
SocketError

SocketError information for the connect failure.

exceptionMessage
String

Exception information for the connect failure.

Applies to