1 write to SocketPath
Aspire.Hosting (1)
Backchannel\AuxiliaryBackchannelService.cs (1)
38
SocketPath
= GetAuxiliaryBackchannelSocketPath(configuration);
36 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 (25)
Backchannel\AuxiliaryBackchannelTests.cs (25)
41
Assert.NotNull(service.
SocketPath
);
42
Assert.True(File.Exists(service.
SocketPath
));
46
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
52
Assert.Equal(service.
SocketPath
, connectedEvent.SocketPath);
84
Assert.NotNull(service.
SocketPath
);
91
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
129
Assert.NotNull(service.
SocketPath
);
133
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
167
Assert.NotNull(service.
SocketPath
);
171
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
211
Assert.NotNull(service.
SocketPath
);
217
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
258
Assert.NotNull(service.
SocketPath
);
262
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
307
Assert.NotNull(service.
SocketPath
);
310
var fileName = Path.GetFileName(service.
SocketPath
);
314
Assert.True(File.Exists(service.
SocketPath
), $"Socket file should exist at: {service.
SocketPath
}");
316
outputHelper.WriteLine($"Socket path: {service.
SocketPath
}");
341
Assert.NotNull(service.
SocketPath
);
345
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
385
Assert.NotNull(service.
SocketPath
);
389
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
425
Assert.NotNull(service.
SocketPath
);
429
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);