18 writes to Replicas
Aspire.Cli.Tests (18)
Commands\TerminalCommandTests.cs (4)
129Replicas = null 154Replicas = [] 205Replicas = 288Replicas =
Commands\TerminalResourceResolverTests.cs (9)
60return Task.FromResult(new GetTerminalInfoResponse { IsAvailable = true, Replicas = [endpoint] }); 86TerminalInfoResponse = new() { IsAvailable = true, Replicas = reverse ? [selected, first] : [first, selected] } 114return Task.FromResult(new GetTerminalInfoResponse { IsAvailable = true, Replicas = [selected] }); 153Replicas = reverse ? [second, first] : [first, second] 183Replicas = 219Replicas = 258Replicas = [new() { ReplicaIndex = 1, Label = "shell-1", ConsumerUdsPath = "unused", IsAlive = true }] 285Replicas = [new() { ReplicaIndex = 0, Label = "shell-0", ConsumerUdsPath = "unused", IsAlive = true }] 311Replicas =
Commands\TerminalTapePlayCommandTests.cs (5)
141Replicas = 227Replicas = 285Replicas = [new() { ReplicaIndex = 0, Label = "shell-0", ConsumerUdsPath = "unused", IsAlive = false }] 330Replicas = 572Replicas = [new() { ReplicaIndex = 0, Label = "shell-0", ConsumerUdsPath = socketPath ?? "unused", IsAlive = true }]
6 references to Replicas
aspire (5)
Backchannel\AppHostAuxiliaryBackchannel.cs (1)
1092resourceName, response.IsAvailable, response.Replicas?.Length ?? 0);
Commands\TerminalResourceResolver.cs (1)
61if (!info.IsAvailable || info.Replicas is not { Length: > 0 } replicas)
Commands\TerminalTapePlayCommand.cs (1)
142if (info.IsAvailable && info.Replicas is { } replicas &&
src\Aspire.Hosting\Backchannel\BackchannelDataTypes.cs (2)
56/// <see cref="GetTerminalInfoResponse.Replicas"/> AND the per-resource list returned by 1599/// <see cref="GetTerminalInfoResponse.Replicas"/> when the auxiliary backchannel reports
Aspire.Cli.Tests (1)
Backchannel\AppHostAuxiliaryBackchannelTests.cs (1)
76Assert.Null(response.Replicas);