ISocketsTelemetryConsumer.OnConnectFailed Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.