SendResultCreateSocketErrorResult Method

Creates a result indicating a socket exception occurred while attempting to send a message to an endpoint.

Definition

Namespace: MobileTrack.Common.Models
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
public static SendResult CreateSocketErrorResult(
	Exception exception
)

Parameters

exception  Exception
The socket error code that indicates the underlying problem that triggered the exception. See https://learn.microsoft.com/en-us/windows/win32/winsock/windows-sockets-error-codes-2 for a full list.

Return Value

SendResult
An instance of SendResult.

See Also