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