3 instantiations of AppHostAuxiliaryBackchannel
aspire (1)
Backchannel\AppHostAuxiliaryBackchannel.cs (1)
165
return new
AppHostAuxiliaryBackchannel
(hash, socketPath, rpc, mcpInfo, appHostInfo, isInScope, capabilitiesSet, logger);
Aspire.Cli.Tests (2)
Mcp\AppHostConnectionSelectionLogicTests.cs (1)
70
return new
AppHostAuxiliaryBackchannel
(
Mcp\ListAppHostsToolTests.cs (1)
178
return new
AppHostAuxiliaryBackchannel
(hash, socketPath, rpc, mcpInfo: null, appHostInfo, isInScope);
23 references to AppHostAuxiliaryBackchannel
aspire (12)
Backchannel\AppHostAuxiliaryBackchannel.cs (2)
112
public static Task<
AppHostAuxiliaryBackchannel
> ConnectAsync(
133
internal static async Task<
AppHostAuxiliaryBackchannel
> CreateFromSocketAsync(
Backchannel\AppHostConnectionResolver.cs (2)
67
var
connection = await
AppHostAuxiliaryBackchannel
.ConnectAsync(
Backchannel\AuxiliaryBackchannelMonitor.cs (6)
29
private readonly ConcurrentDictionary<string, ConcurrentDictionary<string,
AppHostAuxiliaryBackchannel
>> _connectionsByHash = new();
234
connectionsForHash.TryRemove(removedFile, out
var
connection))
409
var
connection = await
AppHostAuxiliaryBackchannel
.CreateFromSocketAsync(hash, socketPath, isInScope, socket, logger, cancellationToken).ConfigureAwait(false);
419
connectionsForHash.TryRemove(socketPath, out
var
conn))
432
var connectionsDict = _connectionsByHash.GetOrAdd(hash, _ => new ConcurrentDictionary<string,
AppHostAuxiliaryBackchannel
>());
Projects\RunningInstanceManager.cs (2)
48
using
var
backchannel = await
AppHostAuxiliaryBackchannel
.ConnectAsync(socketPath, _logger, cancellationToken).ConfigureAwait(false);
Aspire.Cli.Tests (11)
Mcp\AppHostConnectionSelectionLogicTests.cs (6)
25
var
inScope = CreateConnection("hash1", appHostPath: "C:/repo/AppHost1", isInScope: true, processId: 1);
26
var
outOfScope = CreateConnection("hash2", appHostPath: "C:/other/AppHost2", isInScope: false, processId: 2);
41
var
inScope = CreateConnection("hash1", appHostPath: "C:/repo/AppHost1", isInScope: true, processId: 1);
57
var
inScope = CreateConnection("hash1", appHostPath: "C:/repo/AppHost1", isInScope: true, processId: 1);
58
var
outOfScope = CreateConnection("hash2", appHostPath: "C:/other/AppHost2", isInScope: false, processId: 2);
66
private static
AppHostAuxiliaryBackchannel
CreateConnection(string hash, string appHostPath, bool isInScope, int processId)
Mcp\ListAppHostsToolTests.cs (5)
54
var
connection = CreateAppHostConnection("hash1", "/tmp/socket1", appHostInfo, isInScope: true);
86
var
connection = CreateAppHostConnection("hash2", "/tmp/socket2", appHostInfo, isInScope: false);
118
var
inScopeConnection = CreateAppHostConnection("hash1", "/tmp/socket1", inScopeAppHostInfo, isInScope: true);
129
var
outOfScopeConnection = CreateAppHostConnection("hash2", "/tmp/socket2", outOfScopeAppHostInfo, isInScope: false);
174
private static
AppHostAuxiliaryBackchannel
CreateAppHostConnection(string hash, string socketPath, AppHostInformation appHostInfo, bool isInScope)