1 write to SocketPath
Aspire.Hosting (1)
Backchannel\AuxiliaryBackchannelService.cs (1)
38
SocketPath
= GetAuxiliaryBackchannelSocketPath(configuration);
25 references to SocketPath
Aspire.Hosting (11)
Backchannel\AuxiliaryBackchannelService.cs (11)
40
logger.LogDebug("Starting auxiliary backchannel service on socket path: {SocketPath}",
SocketPath
);
43
var directory = Path.GetDirectoryName(
SocketPath
);
50
if (File.Exists(
SocketPath
))
52
File.Delete(
SocketPath
);
57
var endpoint = new UnixDomainSocketEndPoint(
SocketPath
);
61
logger.LogDebug("Auxiliary backchannel listening on {SocketPath}",
SocketPath
);
96
if (
SocketPath
!= null && File.Exists(
SocketPath
))
100
File.Delete(
SocketPath
);
104
logger.LogWarning(ex, "Failed to delete socket file: {SocketPath}",
SocketPath
);
117
var connectedEvent = new AuxiliaryBackchannelConnectedEvent(serviceProvider,
SocketPath
!, clientSocket);
Aspire.Hosting.Tests (14)
Backchannel\AuxiliaryBackchannelTests.cs (14)
38
Assert.NotNull(service.
SocketPath
);
39
Assert.True(File.Exists(service.
SocketPath
));
43
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
49
Assert.Equal(service.
SocketPath
, connectedEvent.SocketPath);
81
Assert.NotNull(service.
SocketPath
);
88
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
126
Assert.NotNull(service.
SocketPath
);
130
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
164
Assert.NotNull(service.
SocketPath
);
168
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
208
Assert.NotNull(service.
SocketPath
);
214
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
255
Assert.NotNull(service.
SocketPath
);
259
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);