8 instantiations of BundleLayoutLease
aspire (2)
Bundles\BundleService.cs (2)
109
: new
BundleLayoutLease
(fallbackLayout, lease: null);
136
return new
BundleLayoutLease
(
Aspire.Cli.Tests (6)
DotNet\ProcessExecutionDetachedTests.cs (3)
335
using var layoutLease = new
BundleLayoutLease
(layout, versionLease);
590
return Task.FromResult<BundleLayoutLease?>(new
BundleLayoutLease
(layout, versionLease));
630
return new
BundleLayoutLease
(layout, versionLease);
Projects\AppHostServerSessionTests.cs (1)
471
var layoutLease = new
BundleLayoutLease
(
Utils\CliTestHelper.cs (2)
839
return Task.FromResult<BundleLayoutLease?>(new
BundleLayoutLease
(layout, lease: null));
888
return Layout is null ? null : new
BundleLayoutLease
(Layout, lease: null);
35 references to BundleLayoutLease
aspire (20)
Bundles\BundleService.cs (1)
101
public async Task<
BundleLayoutLease
?> EnsureExtractedAndAcquireLayoutAsync(string holderKind, string? commandName = null, CancellationToken cancellationToken = default)
Bundles\IBundleService.cs (1)
43
Task<
BundleLayoutLease
?> EnsureExtractedAndAcquireLayoutAsync(string holderKind, string? commandName = null, CancellationToken cancellationToken = default);
Commands\DashboardRunCommand.cs (2)
104
using
var
layoutLease = await EnsureDashboardBundleAsync(cancellationToken).ConfigureAwait(false);
166
private async Task<
BundleLayoutLease
?> EnsureDashboardBundleAsync(CancellationToken cancellationToken)
Commands\DcpWorkloadCleanupService.cs (1)
22
BundleLayoutLease
? layoutLease = null;
Processes\DcpExecutableResolver.cs (3)
25
var
layoutLease = await bundleService.EnsureExtractedAndAcquireLayoutAsync("cli", commandName, cancellationToken).ConfigureAwait(false);
56
internal sealed class DcpExecutableResolution(string executablePath,
BundleLayoutLease
? layoutLease) : IDisposable
60
public
BundleLayoutLease
? LayoutLease { get; } = layoutLease;
Profiling\ProfileCaptureService.cs (3)
62
BundleLayoutLease
? layoutLease = null;
233
private readonly
BundleLayoutLease
? _layoutLease;
255
BundleLayoutLease
? layoutLease = null)
Projects\AppHostServerProject.cs (2)
63
var
layoutLease = await bundleService.EnsureExtractedAndAcquireLayoutAsync("cli", "apphost-server", cancellationToken);
82
BundleLayoutLease
? layoutLease)
Projects\DotNetAppHostProject.cs (4)
1492
var
cliBundleLease = await AcquireCliBundleLayoutAsync(cancellationToken);
1493
using
var
cliBundleLeaseScope = cliBundleLease;
2592
private Task<
BundleLayoutLease
?> AcquireCliBundleLayoutAsync(CancellationToken cancellationToken)
2597
BundleLayoutLease
? layoutLease,
Projects\PrebuiltAppHostServer.cs (2)
61
private readonly
BundleLayoutLease
? _layoutLease;
99
BundleLayoutLease
? layoutLease = null)
Utils\EnvironmentChecker\DcpConnectionHealthCheck.cs (1)
32
BundleLayoutLease
? layoutLease = null;
Aspire.Cli.Tests (15)
BundleServiceIntegrationTests.cs (2)
363
using
var
layoutLease = await v1Service.EnsureExtractedAndAcquireLayoutAsync("test", "reader");
557
using
var
layoutLease = await service.EnsureExtractedAndAcquireLayoutAsync("test", "sidecarless-flow");
DotNet\ProcessExecutionDetachedTests.cs (7)
335
using
var
layoutLease = new BundleLayoutLease(layout, versionLease);
535
private sealed class FixedBundleService(
BundleLayoutLease
layoutLease) : IBundleService
553
public Task<
BundleLayoutLease
?> EnsureExtractedAndAcquireLayoutAsync(string holderKind, string? commandName = null, CancellationToken cancellationToken = default)
558
return Task.FromResult<
BundleLayoutLease
?>(layoutLease);
586
public Task<
BundleLayoutLease
?> EnsureExtractedAndAcquireLayoutAsync(string holderKind, string? commandName = null, CancellationToken cancellationToken = default)
590
return Task.FromResult<
BundleLayoutLease
?>(new BundleLayoutLease(layout, versionLease));
625
public async Task<
BundleLayoutLease
?> EnsureExtractedAndAcquireLayoutAsync(string holderKind, string? commandName = null, CancellationToken cancellationToken = default)
Projects\AppHostServerSessionTests.cs (1)
471
var
layoutLease = new BundleLayoutLease(
Utils\CliTestHelper.cs (5)
807
public Task<
BundleLayoutLease
?> EnsureExtractedAndAcquireLayoutAsync(string holderKind, string? commandName = null, CancellationToken cancellationToken = default)
808
=> Task.FromResult<
BundleLayoutLease
?>(null);
827
public Task<
BundleLayoutLease
?> EnsureExtractedAndAcquireLayoutAsync(string holderKind, string? commandName = null, CancellationToken cancellationToken = default)
839
return Task.FromResult<
BundleLayoutLease
?>(new BundleLayoutLease(layout, lease: null));
876
public async Task<
BundleLayoutLease
?> EnsureExtractedAndAcquireLayoutAsync(string holderKind, string? commandName = null, CancellationToken cancellationToken = default)