8 instantiations of BundleLayoutLease
aspire (2)
Bundles\BundleService.cs (2)
109: new BundleLayoutLease(fallbackLayout, lease: null); 136return new BundleLayoutLease(
Aspire.Cli.Tests (6)
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)
471var layoutLease = new BundleLayoutLease(
Utils\CliTestHelper.cs (2)
839return Task.FromResult<BundleLayoutLease?>(new BundleLayoutLease(layout, lease: null)); 888return Layout is null ? null : new BundleLayoutLease(Layout, lease: null);
35 references to BundleLayoutLease
aspire (20)
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)
104using var layoutLease = await EnsureDashboardBundleAsync(cancellationToken).ConfigureAwait(false); 166private async Task<BundleLayoutLease?> EnsureDashboardBundleAsync(CancellationToken cancellationToken)
Commands\DcpWorkloadCleanupService.cs (1)
22BundleLayoutLease? layoutLease = 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)
62BundleLayoutLease? layoutLease = null; 233private readonly BundleLayoutLease? _layoutLease; 255BundleLayoutLease? layoutLease = null)
Projects\AppHostServerProject.cs (2)
63var layoutLease = await bundleService.EnsureExtractedAndAcquireLayoutAsync("cli", "apphost-server", cancellationToken); 82BundleLayoutLease? layoutLease)
Projects\DotNetAppHostProject.cs (4)
1492var cliBundleLease = await AcquireCliBundleLayoutAsync(cancellationToken); 1493using var cliBundleLeaseScope = cliBundleLease; 2592private Task<BundleLayoutLease?> AcquireCliBundleLayoutAsync(CancellationToken cancellationToken) 2597BundleLayoutLease? layoutLease,
Projects\PrebuiltAppHostServer.cs (2)
61private readonly BundleLayoutLease? _layoutLease; 99BundleLayoutLease? layoutLease = null)
Utils\EnvironmentChecker\DcpConnectionHealthCheck.cs (1)
32BundleLayoutLease? layoutLease = null;
Aspire.Cli.Tests (15)
BundleServiceIntegrationTests.cs (2)
363using var layoutLease = await v1Service.EnsureExtractedAndAcquireLayoutAsync("test", "reader"); 557using 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)
471var layoutLease = new BundleLayoutLease(
Utils\CliTestHelper.cs (5)
807public Task<BundleLayoutLease?> EnsureExtractedAndAcquireLayoutAsync(string holderKind, string? commandName = null, CancellationToken cancellationToken = default) 808=> Task.FromResult<BundleLayoutLease?>(null); 827public Task<BundleLayoutLease?> EnsureExtractedAndAcquireLayoutAsync(string holderKind, string? commandName = null, CancellationToken cancellationToken = default) 839return Task.FromResult<BundleLayoutLease?>(new BundleLayoutLease(layout, lease: null)); 876public async Task<BundleLayoutLease?> EnsureExtractedAndAcquireLayoutAsync(string holderKind, string? commandName = null, CancellationToken cancellationToken = default)