22 references to HasActiveLease
aspire (1)
Bundles\BundleService.cs (1)
666if (BundleVersionLease.HasActiveLease(entry))
Aspire.Cli.Tests (21)
BundleServiceIntegrationTests.cs (1)
470Assert.True(BundleVersionLease.HasActiveLease(versionDir));
Commands\TrayCommandTests.cs (16)
136Assert.True(BundleVersionLease.HasActiveLease(root)); 154Assert.True(BundleVersionLease.HasActiveLease(root)); 169Assert.Equal(action == "start", BundleVersionLease.HasActiveLease(root)); 177Assert.False(BundleVersionLease.HasActiveLease(root)); 192Assert.False(BundleVersionLease.HasActiveLease(bundle.Layout.LayoutPath!)); 307Assert.False(BundleVersionLease.HasActiveLease(root)); 341Assert.False(BundleVersionLease.HasActiveLease(bundle.Layout!.LayoutPath!)); 368Assert.False(BundleVersionLease.HasActiveLease(bundle.Layout!.LayoutPath!)); 396Assert.True(BundleVersionLease.HasActiveLease(root)); 419Assert.False(BundleVersionLease.HasActiveLease(root)); 443Assert.True(BundleVersionLease.HasActiveLease(root)); 463Assert.True(BundleVersionLease.HasActiveLease(root)); 468Assert.Equal(helperExitCode == 0, BundleVersionLease.HasActiveLease(root)); 497Assert.False(BundleVersionLease.HasActiveLease(bundle.Layout!.LayoutPath!)); 596Assert.False(BundleVersionLease.HasActiveLease(bundle.Layout!.LayoutPath!)); 660Assert.False(BundleVersionLease.HasActiveLease(root));
ProgramTests.cs (2)
158Assert.True(BundleVersionLease.HasActiveLease(versionDirectory)); 162Assert.False(BundleVersionLease.HasActiveLease(versionDirectory.FullName));
Projects\AppHostServerSessionTests.cs (2)
533Assert.True(BundleVersionLease.HasActiveLease(versionDirectory.FullName)); 543Assert.False(BundleVersionLease.HasActiveLease(versionDirectory.FullName));