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