23 references to HasActiveLease
aspire (1)
Bundles\BundleService.cs (1)
666
if (BundleVersionLease.
HasActiveLease
(entry))
Aspire.Cli.Tests (22)
BundleServiceIntegrationTests.cs (1)
470
Assert.True(BundleVersionLease.
HasActiveLease
(versionDir));
Commands\TrayCommandTests.cs (17)
85
Assert.False(BundleVersionLease.
HasActiveLease
(bundle.Layout.LayoutPath!));
200
Assert.True(BundleVersionLease.
HasActiveLease
(root));
218
Assert.True(BundleVersionLease.
HasActiveLease
(root));
233
Assert.Equal(action == "start", BundleVersionLease.
HasActiveLease
(root));
241
Assert.False(BundleVersionLease.
HasActiveLease
(root));
256
Assert.False(BundleVersionLease.
HasActiveLease
(bundle.Layout.LayoutPath!));
373
Assert.False(BundleVersionLease.
HasActiveLease
(root));
407
Assert.False(BundleVersionLease.
HasActiveLease
(bundle.Layout!.LayoutPath!));
434
Assert.False(BundleVersionLease.
HasActiveLease
(bundle.Layout!.LayoutPath!));
462
Assert.True(BundleVersionLease.
HasActiveLease
(root));
485
Assert.False(BundleVersionLease.
HasActiveLease
(root));
509
Assert.True(BundleVersionLease.
HasActiveLease
(root));
529
Assert.True(BundleVersionLease.
HasActiveLease
(root));
534
Assert.Equal(helperExitCode == 0, BundleVersionLease.
HasActiveLease
(root));
563
Assert.False(BundleVersionLease.
HasActiveLease
(bundle.Layout!.LayoutPath!));
662
Assert.False(BundleVersionLease.
HasActiveLease
(bundle.Layout!.LayoutPath!));
726
Assert.False(BundleVersionLease.
HasActiveLease
(root));
ProgramTests.cs (2)
181
Assert.True(BundleVersionLease.
HasActiveLease
(versionDirectory));
185
Assert.False(BundleVersionLease.
HasActiveLease
(versionDirectory.FullName));
Projects\AppHostServerSessionTests.cs (2)
531
Assert.True(BundleVersionLease.
HasActiveLease
(versionDirectory.FullName));
541
Assert.False(BundleVersionLease.
HasActiveLease
(versionDirectory.FullName));