7 instantiations of BundleLayoutLease
aspire (2)
Bundles\BundleService.cs (2)
109: new BundleLayoutLease(fallbackLayout, lease: null); 136return new BundleLayoutLease(
Aspire.Cli.Tests (5)
DotNet\ProcessExecutionDetachedTests.cs (3)
335using var layoutLease = new BundleLayoutLease(layout, versionLease); 590return Task.FromResult<BundleLayoutLease?>(new BundleLayoutLease(layout, versionLease)); 630return new BundleLayoutLease(layout, versionLease);
Projects\AppHostServerSessionTests.cs (1)
454var layoutLease = new BundleLayoutLease(
Utils\CliTestHelper.cs (1)
841return Layout is null ? null : new BundleLayoutLease(Layout, lease: null);
34 references to BundleLayoutLease
aspire (21)
Bundles\BundleService.cs (1)
101public async Task<BundleLayoutLease?> EnsureExtractedAndAcquireLayoutAsync(string holderKind, string? commandName = null, CancellationToken cancellationToken = default)
Bundles\IBundleService.cs (1)
43Task<BundleLayoutLease?> EnsureExtractedAndAcquireLayoutAsync(string holderKind, string? commandName = null, CancellationToken cancellationToken = default);
Commands\DashboardRunCommand.cs (2)
92using var layoutLease = await EnsureDashboardBundleAsync(cancellationToken).ConfigureAwait(false); 149private async Task<BundleLayoutLease?> EnsureDashboardBundleAsync(CancellationToken cancellationToken)
Commands\DcpWorkloadCleanupService.cs (1)
22BundleLayoutLease? layoutLease = null;
NuGet\BundleNuGetPackageCache.cs (1)
140using var layoutLease = await _bundleService.EnsureExtractedAndAcquireLayoutAsync("cli", "nuget-search", cancellationToken).ConfigureAwait(false);
NuGet\BundleNuGetService.cs (1)
80using var layoutLease = _bundleService is null
Processes\DcpExecutableResolver.cs (3)
25var layoutLease = await bundleService.EnsureExtractedAndAcquireLayoutAsync("cli", commandName, cancellationToken).ConfigureAwait(false); 56internal sealed class DcpExecutableResolution(string executablePath, BundleLayoutLease? layoutLease) : IDisposable 60public BundleLayoutLease? LayoutLease { get; } = layoutLease;
Profiling\ProfileCaptureService.cs (3)
63BundleLayoutLease? layoutLease = null; 230private readonly BundleLayoutLease? _layoutLease; 252BundleLayoutLease? layoutLease = null)
Projects\AppHostServerProject.cs (2)
58var layoutLease = await bundleService.EnsureExtractedAndAcquireLayoutAsync("cli", "apphost-server", cancellationToken); 77BundleLayoutLease? layoutLease)
Projects\DotNetAppHostProject.cs (4)
1489var cliBundleLease = await AcquireCliBundleLayoutAsync(cancellationToken); 1490using var cliBundleLeaseScope = cliBundleLease; 2535private Task<BundleLayoutLease?> AcquireCliBundleLayoutAsync(CancellationToken cancellationToken) 2540BundleLayoutLease? layoutLease,
Projects\PrebuiltAppHostServer.cs (2)
58private readonly BundleLayoutLease? _layoutLease; 95BundleLayoutLease? layoutLease = null)
Aspire.Cli.Tests (13)
BundleServiceIntegrationTests.cs (2)
270using var layoutLease = await v1Service.EnsureExtractedAndAcquireLayoutAsync("test", "reader"); 431using var layoutLease = await service.EnsureExtractedAndAcquireLayoutAsync("test", "sidecarless-flow");
DotNet\ProcessExecutionDetachedTests.cs (7)
335using var layoutLease = new BundleLayoutLease(layout, versionLease); 535private sealed class FixedBundleService(BundleLayoutLease layoutLease) : IBundleService 553public Task<BundleLayoutLease?> EnsureExtractedAndAcquireLayoutAsync(string holderKind, string? commandName = null, CancellationToken cancellationToken = default) 558return Task.FromResult<BundleLayoutLease?>(layoutLease); 586public Task<BundleLayoutLease?> EnsureExtractedAndAcquireLayoutAsync(string holderKind, string? commandName = null, CancellationToken cancellationToken = default) 590return Task.FromResult<BundleLayoutLease?>(new BundleLayoutLease(layout, versionLease)); 625public async Task<BundleLayoutLease?> EnsureExtractedAndAcquireLayoutAsync(string holderKind, string? commandName = null, CancellationToken cancellationToken = default)
Projects\AppHostServerSessionTests.cs (1)
454var layoutLease = new BundleLayoutLease(
Utils\CliTestHelper.cs (3)
792public Task<BundleLayoutLease?> EnsureExtractedAndAcquireLayoutAsync(string holderKind, string? commandName = null, CancellationToken cancellationToken = default) 793=> Task.FromResult<BundleLayoutLease?>(null); 829public async Task<BundleLayoutLease?> EnsureExtractedAndAcquireLayoutAsync(string holderKind, string? commandName = null, CancellationToken cancellationToken = default)