17 instantiations of TerminalReplicaInfo
Aspire.Cli.Tests (17)
Backchannel\BackchannelJsonSerializerContextTests.cs (1)
167new TerminalReplicaInfo
Commands\TerminalCommandTests.cs (9)
180new TerminalReplicaInfo 187new TerminalReplicaInfo 265new TerminalReplicaInfo 272new TerminalReplicaInfo 378new TerminalReplicaInfo 483new TerminalReplicaInfo 497new TerminalReplicaInfo 526new TerminalReplicaInfo 713new TerminalReplicaInfo
Commands\TerminalTapePlayCommandTests.cs (7)
137new() { ReplicaIndex = 0, Label = "shell-0", ConsumerUdsPath = "unused", IsAlive = true }, 138new() { ReplicaIndex = 1, Label = "shell-1", ConsumerUdsPath = "unused", IsAlive = true } 174new() { ReplicaIndex = 0, Label = "shell-0", ConsumerUdsPath = "unused", IsAlive = true }, 175new() 230Replicas = [new() { ReplicaIndex = 0, Label = "shell-0", ConsumerUdsPath = "unused", IsAlive = false }] 277new() 515Replicas = [new() { ReplicaIndex = 0, Label = "shell-0", ConsumerUdsPath = socketPath ?? "unused", IsAlive = true }]
18 references to TerminalReplicaInfo
aspire (15)
Backchannel\BackchannelJsonSerializerContext.cs (2)
105[JsonSerializable(typeof(TerminalReplicaInfo))] 106[JsonSerializable(typeof(TerminalReplicaInfo[]))]
Backchannel\IAppHostAuxiliaryBackchannel.cs (1)
62/// attached peer count, and peer details on <see cref="TerminalReplicaInfo"/>).
Commands\TerminalPsCommand.cs (3)
168foreach (var replica in terminal.Replicas) 309foreach (var replica in terminal.Replicas) 357foreach (var replica in terminal.Replicas)
Commands\TerminalResourceResolver.cs (3)
16public async Task<(string ResourceName, TerminalReplicaInfo? Replica)> ResolveAsync( 51var match = Array.Find(replicas, r => r.ReplicaIndex == index); 73var picked = await interactionService.PromptForSelectionAsync(
src\Aspire.Hosting\Backchannel\BackchannelDataTypes.cs (6)
1712public TerminalReplicaInfo[]? Replicas { get; init; } 1750/// is false and the per-replica entries are degraded (<see cref="TerminalReplicaInfo.IsAlive"/> = 1751/// false, AppHost-known <see cref="TerminalReplicaInfo.ConsumerUdsPath"/>), but the array shape 1789/// <see cref="TerminalReplicaInfo.IsAlive"/> = false and the AppHost-known 1790/// <see cref="TerminalReplicaInfo.ConsumerUdsPath"/> populated, so the diagnostic shape 1794public TerminalReplicaInfo[]? Replicas { get; init; }
Aspire.Cli.Tests (3)
Backchannel\BackchannelJsonSerializerContextTests.cs (3)
128var replica = JsonSerializer.Deserialize<TerminalReplicaInfo>(json, options); 198var replica = terminal.Replicas[0];