1 write to SocketPath
Aspire.Hosting (1)
Backchannel\AuxiliaryBackchannelService.cs (1)
45
SocketPath
= GetAuxiliaryBackchannelSocketPath(configuration);
43 references to SocketPath
Aspire.Hosting (12)
Backchannel\AuxiliaryBackchannelService.cs (12)
47
logger.LogDebug("Starting auxiliary backchannel service on socket path: {SocketPath}",
SocketPath
);
50
var directory = Path.GetDirectoryName(
SocketPath
);
70
if (File.Exists(
SocketPath
))
72
logger.LogDebug("Deleting existing socket file: {SocketPath}",
SocketPath
);
73
File.Delete(
SocketPath
);
79
var endpoint = new UnixDomainSocketEndPoint(
SocketPath
);
83
logger.LogDebug("Auxiliary backchannel listening on {SocketPath}",
SocketPath
);
119
if (
SocketPath
!= null && File.Exists(
SocketPath
))
123
File.Delete(
SocketPath
);
127
logger.LogWarning(ex, "Failed to delete socket file: {SocketPath}",
SocketPath
);
140
var connectedEvent = new AuxiliaryBackchannelConnectedEvent(serviceProvider,
SocketPath
!, clientSocket);
Aspire.Hosting.Tests (31)
Backchannel\AuxiliaryBackchannelTests.cs (31)
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);
78
Assert.NotNull(service.
SocketPath
);
85
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
120
Assert.NotNull(service.
SocketPath
);
124
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
155
Assert.NotNull(service.
SocketPath
);
159
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
196
Assert.NotNull(service.
SocketPath
);
202
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
240
Assert.NotNull(service.
SocketPath
);
244
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
286
Assert.NotNull(service.
SocketPath
);
289
var fileName = Path.GetFileName(service.
SocketPath
);
293
Assert.True(File.Exists(service.
SocketPath
), $"Socket file should exist at: {service.
SocketPath
}");
295
outputHelper.WriteLine($"Socket path: {service.
SocketPath
}");
317
Assert.NotNull(service.
SocketPath
);
321
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
358
Assert.NotNull(service.
SocketPath
);
362
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
395
Assert.NotNull(service.
SocketPath
);
399
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
444
Assert.NotNull(service.
SocketPath
);
448
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
482
Assert.NotNull(service.
SocketPath
);
486
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
525
Assert.NotNull(service.
SocketPath
);
529
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);