1 write to SocketPath
Aspire.Hosting (1)
Backchannel\AuxiliaryBackchannelService.cs (1)
47
SocketPath
= GetAuxiliaryBackchannelSocketPath(configuration);
48 references to SocketPath
Aspire.Hosting (12)
Backchannel\AuxiliaryBackchannelService.cs (12)
49
logger.LogDebug("Starting auxiliary backchannel service on socket path: {SocketPath}",
SocketPath
);
52
var directory = Path.GetDirectoryName(
SocketPath
);
80
if (File.Exists(
SocketPath
))
82
logger.LogDebug("Deleting existing socket file: {SocketPath}",
SocketPath
);
83
File.Delete(
SocketPath
);
89
var endpoint = new UnixDomainSocketEndPoint(
SocketPath
);
93
logger.LogDebug("Auxiliary backchannel listening on {SocketPath}",
SocketPath
);
129
if (
SocketPath
!= null && File.Exists(
SocketPath
))
133
File.Delete(
SocketPath
);
137
logger.LogWarning(ex, "Failed to delete socket file: {SocketPath}",
SocketPath
);
150
var connectedEvent = new AuxiliaryBackchannelConnectedEvent(serviceProvider,
SocketPath
!, clientSocket);
Aspire.Hosting.Tests (36)
Backchannel\AuxiliaryBackchannelTests.cs (36)
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);
81
Assert.NotNull(service.
SocketPath
);
88
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
122
Assert.NotNull(service.
SocketPath
);
126
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
157
Assert.NotNull(service.
SocketPath
);
161
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
198
Assert.NotNull(service.
SocketPath
);
204
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
242
Assert.NotNull(service.
SocketPath
);
246
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
286
Assert.NotNull(service.
SocketPath
);
288
var fileName = Path.GetFileName(service.
SocketPath
);
291
var directory = Path.GetDirectoryName(service.
SocketPath
);
295
BackchannelConstants.GetSocketPathByteCountIncludingNull(service.
SocketPath
) <= BackchannelConstants.GetMaxSocketPathBytesIncludingNull(),
296
$"Socket path should fit the platform byte limit: {service.
SocketPath
}");
298
Assert.True(File.Exists(service.
SocketPath
), $"Socket file should exist at: {service.
SocketPath
}");
300
outputHelper.WriteLine($"Socket path: {service.
SocketPath
}");
322
Assert.NotNull(service.
SocketPath
);
326
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
363
Assert.NotNull(service.
SocketPath
);
367
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
400
Assert.NotNull(service.
SocketPath
);
404
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
449
Assert.NotNull(service.
SocketPath
);
453
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
491
Assert.NotNull(service.
SocketPath
);
495
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
534
Assert.NotNull(service.
SocketPath
);
538
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);
577
Assert.NotNull(service.
SocketPath
);
581
var endpoint = new UnixDomainSocketEndPoint(service.
SocketPath
);