31 writes to IsAlive
Aspire.Cli.Tests (31)
Backchannel\BackchannelJsonSerializerContextTests.cs (1)
282IsAlive = true,
Commands\TerminalCommandTests.cs (9)
207new() { ReplicaIndex = 0, Label = "myresource-0", ConsumerUdsPath = "unused", IsAlive = true }, 208new() { ReplicaIndex = 1, Label = "myresource-1", ConsumerUdsPath = "unused", IsAlive = true } 295IsAlive = true 302IsAlive = true 410IsAlive = true, 515IsAlive = true, 529IsAlive = true, 558IsAlive = false, 745IsAlive = true,
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 }, 235IsAlive = producerConnected, 285Replicas = [new() { ReplicaIndex = 0, Label = "shell-0", ConsumerUdsPath = "unused", IsAlive = false }] 337IsAlive = Interlocked.Increment(ref requests) > 1 572Replicas = [new() { ReplicaIndex = 0, Label = "shell-0", ConsumerUdsPath = socketPath ?? "unused", IsAlive = true }]
8 references to IsAlive
aspire (7)
Commands\TerminalAttachCommand.cs (1)
119if (!replica.IsAlive)
Commands\TerminalPsCommand.cs (2)
173IsAlive = replica.IsAlive, 311var status = replica.IsAlive
Commands\TerminalTapePlayCommand.cs (1)
138while (!replica.IsAlive)
src\Aspire.Hosting\Backchannel\BackchannelDataTypes.cs (3)
1639/// replica. Synonym for <see cref="IsAlive"/> with clearer naming. 1750/// is false and the per-replica entries are degraded (<see cref="TerminalReplicaInfo.IsAlive"/> = 1789/// <see cref="TerminalReplicaInfo.IsAlive"/> = false and the AppHost-known
Aspire.Cli.Tests (1)
Backchannel\BackchannelJsonSerializerContextTests.cs (1)
243Assert.True(replica.IsAlive);