31 writes to ReplicaIndex
Aspire.Cli.Tests (31)
Backchannel\BackchannelJsonSerializerContextTests.cs (1)
279ReplicaIndex = 0,
Commands\TerminalCommandTests.cs (9)
207new() { ReplicaIndex = 0, Label = "myresource-0", ConsumerUdsPath = "unused", IsAlive = true }, 208new() { ReplicaIndex = 1, Label = "myresource-1", ConsumerUdsPath = "unused", IsAlive = true } 292ReplicaIndex = 0, 299ReplicaIndex = 1, 407ReplicaIndex = 0, 512ReplicaIndex = 0, 526ReplicaIndex = 1, 555ReplicaIndex = 0, 742ReplicaIndex = 0,
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 }, 232ReplicaIndex = 1, 285Replicas = [new() { ReplicaIndex = 0, Label = "shell-0", ConsumerUdsPath = "unused", IsAlive = false }] 334ReplicaIndex = 0, 572Replicas = [new() { ReplicaIndex = 0, Label = "shell-0", ConsumerUdsPath = socketPath ?? "unused", IsAlive = true }]
15 references to ReplicaIndex
aspire (14)
Commands\TerminalAttachCommand.cs (5)
124replica.ReplicaIndex, 133replica.ReplicaIndex)); 151"{0} (replica {1})", canonicalName, replica.ReplicaIndex); 166canonicalName, replica.ReplicaIndex)); 175canonicalName, replica.ReplicaIndex));
Commands\TerminalPsCommand.cs (3)
172ReplicaIndex = replica.ReplicaIndex, 325replica.ReplicaIndex.ToString(CultureInfo.InvariantCulture), 367replica.ReplicaIndex.ToString(CultureInfo.InvariantCulture),
Commands\TerminalResourceResolver.cs (3)
71var match = Array.Find(replicas, r => r.ReplicaIndex == requestedIndex); 76string.Join(", ", replicas.Select(r => r.ReplicaIndex.ToString(CultureInfo.InvariantCulture))))); 96Array.Find(replicas, r => r.ReplicaIndex == index) is { } replica)
Commands\TerminalTapePlayCommand.cs (3)
143Array.Find(replicas, r => r.ReplicaIndex == replica.ReplicaIndex) is { } refreshedReplica) 222_logger.LogDebug(ex, "Terminal tape connection failed for {ResourceName}, replica {ReplicaIndex}.", canonicalName, replica.ReplicaIndex);
Aspire.Cli.Tests (1)
Backchannel\BackchannelJsonSerializerContextTests.cs (1)
241Assert.Equal(0, replica.ReplicaIndex);