22 writes to Version
Aspire.Cli.Tests (22)
Backchannel\ResourceSnapshotWatcherTests.cs (11)
205Version = 0 217Version = 0 250Version = 2 263Version = 1 297Version = 1 310Version = 2 344Version = 2 356Version = 1 366Version = 3 562Version = 1 588Version = version
Backchannel\TrayWatchStreamTests.cs (9)
674new() { Name = "api", State = "Starting", Version = 1 }, 675new() { Name = "cache", State = "Running", HealthStatus = "Healthy", Version = 1 } 700resourceUpdates.Writer.TryWrite(new() { Name = "api", State = "Running", HealthStatus = "Healthy", Version = 2 }); 703resourceUpdates.Writer.TryWrite(new() { Name = "cache", State = "Running", HealthStatus = "Degraded", Version = 2 }); 706resourceUpdates.Writer.TryWrite(new() { Name = "cache", State = "Running", HealthStatus = "Unhealthy", Version = 3 }); 709resourceUpdates.Writer.TryWrite(new() { Name = "cache", State = "Running", HealthStatus = "Healthy", Version = 4 }); 712resourceUpdates.Writer.TryWrite(new() { Name = "api", State = "Running", HealthStatus = "Unhealthy", Version = 1 }); 713resourceUpdates.Writer.TryWrite(new() { Name = "cache", State = "FailedToStart", Version = 5 }); 716resourceUpdates.Writer.TryWrite(new() { Name = "cache", State = "FailedToStart", IsHidden = true, Version = 6 });
Commands\DescribeCommandTests.cs (2)
537new ResourceSnapshot { Name = "redis", Version = 1, DisplayName = "redis", ResourceType = "Container", State = "Starting" }, 1201Version = 2,
17 references to Version
aspire (8)
Backchannel\ResourceSnapshotWatcher.cs (8)
160snapshot.Version > currentSnapshot.Version) 182snapshot.Version > 0 && 183currentSnapshot.Version > 0 && 184snapshot.Version < currentSnapshot.Version) 189retainedVersion = currentSnapshot.Version; 217snapshot.Version,
Aspire.Cli.Tests (9)
Backchannel\ResourceSnapshotWatcherTests.cs (9)
229Assert.Equal(0, snapshot.Version); 273Assert.Equal(2, snapshot.Version); 320Assert.Equal(2, snapshot.Version); 384Assert.Equal(2, retainedSnapshot.Version); 398Assert.Equal(3, currentSnapshot.Version); 403Assert.Equal(3, update.Version); 607snapshot.Version, 608(_, currentVersion) => Math.Max(currentVersion, snapshot.Version)); 636Assert.All(finalCapture.Resources, snapshot => Assert.Equal(3, snapshot.Version));