31 instantiations of TerminalReplicaInfo
Aspire.Cli.Tests (31)
Backchannel\BackchannelJsonSerializerContextTests.cs (1)
277new TerminalReplicaInfo
Commands\TerminalCommandTests.cs (9)
207new() { ReplicaIndex = 0, Label = "myresource-0", ConsumerUdsPath = "unused", IsAlive = true }, 208new() { ReplicaIndex = 1, Label = "myresource-1", ConsumerUdsPath = "unused", IsAlive = true } 290new TerminalReplicaInfo 297new TerminalReplicaInfo 405new TerminalReplicaInfo 510new TerminalReplicaInfo 524new TerminalReplicaInfo 553new TerminalReplicaInfo 740new TerminalReplicaInfo
Commands\TerminalResourceResolverTests.cs (14)
56var endpoint = new TerminalReplicaInfo { ReplicaIndex = 0, Label = "shell-0", ConsumerUdsPath = "singleton.sock", IsAlive = true }; 77var first = new TerminalReplicaInfo { ReplicaIndex = 0, Label = "shell-0", ConsumerUdsPath = "first.sock", IsAlive = true }; 78var selected = new TerminalReplicaInfo { ReplicaIndex = 1, Label = "shell-1", ConsumerUdsPath = "selected.sock", IsAlive = false }; 103var selected = new TerminalReplicaInfo { ReplicaIndex = 1, Label = "shell-1", ConsumerUdsPath = "selected.sock", IsAlive = true }; 138var first = new TerminalReplicaInfo { ReplicaIndex = 0, Label = "shell-0", ConsumerUdsPath = "first.sock", IsAlive = true }; 139var second = new TerminalReplicaInfo { ReplicaIndex = 1, Label = "shell-1", ConsumerUdsPath = "second.sock", IsAlive = true }; 185new() { ReplicaIndex = 0, Label = "shell-0", ConsumerUdsPath = "unused", IsAlive = true }, 186new() { ReplicaIndex = 1, Label = "shell-1", ConsumerUdsPath = "unused", IsAlive = true } 221new() { ReplicaIndex = 0, Label = "shell-0", ConsumerUdsPath = "first.sock", IsAlive = true }, 222new() { ReplicaIndex = 1, Label = "shell-1", ConsumerUdsPath = "second.sock", IsAlive = true } 258Replicas = [new() { ReplicaIndex = 1, Label = "shell-1", ConsumerUdsPath = "unused", IsAlive = true }] 285Replicas = [new() { ReplicaIndex = 0, Label = "shell-0", ConsumerUdsPath = "unused", IsAlive = true }] 313new() { ReplicaIndex = 0, Label = "shell-0", ConsumerUdsPath = "first.sock", IsAlive = true }, 314new() { ReplicaIndex = 1, Label = "shell-1", ConsumerUdsPath = "second.sock", IsAlive = true }
Commands\TerminalTapePlayCommandTests.cs (7)
143new() { ReplicaIndex = 0, Label = "shell-0", ConsumerUdsPath = "unused", IsAlive = true }, 144new() { ReplicaIndex = 1, Label = "shell-1", ConsumerUdsPath = "unused", IsAlive = true } 229new() { ReplicaIndex = 0, Label = "shell-0", ConsumerUdsPath = "unused", IsAlive = true }, 230new() 285Replicas = [new() { ReplicaIndex = 0, Label = "shell-0", ConsumerUdsPath = "unused", IsAlive = false }] 332new() 572Replicas = [new() { ReplicaIndex = 0, Label = "shell-0", ConsumerUdsPath = socketPath ?? "unused", IsAlive = true }]
23 references to TerminalReplicaInfo
aspire (14)
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 (2)
18public async Task<(string ResourceName, TerminalReplicaInfo? Replica)> ResolveAsync( 71var match = Array.Find(replicas, r => r.ReplicaIndex == requestedIndex);
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 (9)
Backchannel\BackchannelJsonSerializerContextTests.cs (3)
238var replica = JsonSerializer.Deserialize<TerminalReplicaInfo>(json, options); 308var replica = terminal.Replicas[0];
Commands\TerminalResourceResolverTests.cs (6)
56var endpoint = new TerminalReplicaInfo { ReplicaIndex = 0, Label = "shell-0", ConsumerUdsPath = "singleton.sock", IsAlive = true }; 77var first = new TerminalReplicaInfo { ReplicaIndex = 0, Label = "shell-0", ConsumerUdsPath = "first.sock", IsAlive = true }; 78var selected = new TerminalReplicaInfo { ReplicaIndex = 1, Label = "shell-1", ConsumerUdsPath = "selected.sock", IsAlive = false }; 103var selected = new TerminalReplicaInfo { ReplicaIndex = 1, Label = "shell-1", ConsumerUdsPath = "selected.sock", IsAlive = true }; 138var first = new TerminalReplicaInfo { ReplicaIndex = 0, Label = "shell-0", ConsumerUdsPath = "first.sock", IsAlive = true }; 139var second = new TerminalReplicaInfo { ReplicaIndex = 1, Label = "shell-1", ConsumerUdsPath = "second.sock", IsAlive = true };