14 instantiations of UnixDomainSocketEndPoint
Aspire.Hosting (1)
Dcp\DcpHostService.cs (1)
249socket.Bind(new UnixDomainSocketEndPoint(socketPath));
Microsoft.AspNetCore.Server.Kestrel.Core (1)
ListenOptions.cs (1)
32EndPoint = new UnixDomainSocketEndPoint(socketPath);
Microsoft.Extensions.Hosting.Systemd (1)
SystemdNotifier.cs (1)
52var endPoint = new UnixDomainSocketEndPoint(_socketPath!);
Sockets.BindTests (1)
SocketTransportOptionsTests.cs (1)
94new UnixDomainSocketEndPoint($"/tmp/{DateTime.UtcNow:yyyyMMddTHHmmss.fff}.sock")
Sockets.FunctionalTests (2)
src\Servers\Kestrel\test\FunctionalTests\UnixDomainSocketsTests.cs (2)
99await socket.ConnectAsync(new UnixDomainSocketEndPoint(path)).DefaultTimeout(); 167await socket.ConnectAsync(new UnixDomainSocketEndPoint(path)).DefaultTimeout();
System.IO.Pipes (2)
System\IO\Pipes\NamedPipeClientStream.Unix.cs (1)
42socket.Connect(new UnixDomainSocketEndPoint(_normalizedPipePath!));
System\IO\Pipes\NamedPipeServerStream.Unix.cs (1)
329socket.Bind(new UnixDomainSocketEndPoint(path));
System.Net.Sockets (5)
System\Net\Sockets\Socket.cs (2)
174_rightEndPoint = new UnixDomainSocketEndPoint(buffer.Slice(0, bufferLength)); 208_remoteEndPoint = new UnixDomainSocketEndPoint(buffer.Slice(0, bufferLength));
System\Net\Sockets\UnixDomainSocketEndPoint.cs (3)
115public override EndPoint Create(SocketAddress socketAddress) => new UnixDomainSocketEndPoint(socketAddress.Buffer.Span.Slice(0, socketAddress.Size)); 153return new UnixDomainSocketEndPoint(_path, Path.GetFullPath(_path)); 163return new UnixDomainSocketEndPoint(_path, null);
System.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\Channels\SocketConnection.cs (1)
779var endpoint = new UnixDomainSocketEndPoint(uriPath.LocalPath);
29 references to UnixDomainSocketEndPoint
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Infrastructure\KestrelMetrics.cs (1)
346else if (localEndpoint is UnixDomainSocketEndPoint udsEndPoint)
ListenOptions.cs (3)
66/// Only set if the <see cref="ListenOptions"/> is bound to a <see cref="UnixDomainSocketEndPoint"/>. 68public string? SocketPath => (EndPoint as UnixDomainSocketEndPoint)?.ToString(); 153case UnixDomainSocketEndPoint _:
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
AddressBinderTests.cs (2)
124Assert.IsType<UnixDomainSocketEndPoint>(listenOptions.EndPoint); 135Assert.IsType<UnixDomainSocketEndPoint>(listenOptions.EndPoint);
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
SocketTransportFactory.cs (1)
50UnixDomainSocketEndPoint _ => true,
SocketTransportOptions.cs (1)
139case UnixDomainSocketEndPoint unix:
Microsoft.Extensions.Hosting.Systemd (1)
SystemdNotifier.cs (1)
52var endPoint = new UnixDomainSocketEndPoint(_socketPath!);
netstandard (1)
netstandard.cs (1)
1288[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.UnixDomainSocketEndPoint))]
System.Net.Sockets (14)
System\Net\Sockets\Socket.cs (3)
824_rightEndPoint = endPointSnapshot is UnixDomainSocketEndPoint unixEndPoint ? 3515if (_rightEndPoint is UnixDomainSocketEndPoint unixEndPoint && 3798if (_rightEndPoint is UnixDomainSocketEndPoint unixEndPoint &&
System\Net\Sockets\SocketsTelemetry.cs (1)
126else if (endPoint is UnixDomainSocketEndPoint udsEndPoint)
System\Net\Sockets\UnixDomainSocketEndPoint.cs (10)
22/// <summary>Initializes a new instance of the <see cref="UnixDomainSocketEndPoint"/> with the file path to connect a unix domain socket over.</summary> 121/// <summary>Gets the path represented by this <see cref="UnixDomainSocketEndPoint"/> instance.</summary> 122/// <returns>The path represented by this <see cref="UnixDomainSocketEndPoint"/> instance.</returns> 136/// <summary>Determines whether the specified <see cref="object"/> is equal to the current <see cref="UnixDomainSocketEndPoint"/>.</summary> 137/// <param name="obj">The <see cref="object"/> to compare with the current <see cref="UnixDomainSocketEndPoint"/>.</param> 138/// <returns><see langword="true"/> if the specified <see cref="object"/> is equal to the current <see cref="UnixDomainSocketEndPoint"/>; otherwise, <see langword="false"/>.</returns> 140=> obj is UnixDomainSocketEndPoint ep && _path == ep._path; 142/// <summary>Returns a hash value for a <see cref="UnixDomainSocketEndPoint"/> instance.</summary> 146internal UnixDomainSocketEndPoint CreateBoundEndPoint() 156internal UnixDomainSocketEndPoint CreateUnboundEndPoint()
System.ServiceModel.UnixDomainSocket (5)
System\ServiceModel\Channels\SocketConnection.cs (5)
50private UnixDomainSocketEndPoint _remoteEndpoint; 416if (TryGetEndpoints(out UnixDomainSocketEndPoint remote)) 439private bool TryGetEndpoints(out UnixDomainSocketEndPoint remoteIPEndpoint) 447remoteIPEndpoint = _remoteEndpoint ?? (UnixDomainSocketEndPoint)_socket.RemoteEndPoint; 779var endpoint = new UnixDomainSocketEndPoint(uriPath.LocalPath);