UnixDomainSocketEndPoint(String) Constructor

Definition

Initializes a new instance of the UnixDomainSocketEndPoint with the file path to connect a unix domain socket over.

C#
public UnixDomainSocketEndPoint(string path);

Parameters

path
String

The path to connect a unix domain socket over.

Exceptions

path is null.

path is of an invalid length for use with domain sockets on this platform. The length must be between 1 and the allowed native path length.

The current OS does not support Unix Domain Sockets.

Applies to

Product Versions
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1