10 instantiations of BundleLayoutLease
aspire (2)
Bundles\BundleService.cs (2)
109
: new
BundleLayoutLease
(fallbackLayout, lease: null);
136
return new
BundleLayoutLease
(
Aspire.Cli.Tests (8)
Commands\TrayCommandTests.cs (1)
549
CreateLayoutLease = () => new
BundleLayoutLease
(layout, BundleVersionLease.Acquire(root, "cli", "tray"))
Projects\AppHostServerSessionTests.cs (1)
528
var layoutLease = new
BundleLayoutLease
(
Projects\NativeAppHostServerProjectTests.cs (4)
78
var lease = new
BundleLayoutLease
(layout, null);
265
LayoutLease = new
BundleLayoutLease
(new LayoutConfiguration { LayoutPath = workspace.Path }, null)
334
LayoutLease = useLayout ? new
BundleLayoutLease
(layout, null) : null
486
LayoutLease = new
BundleLayoutLease
(new LayoutConfiguration { LayoutPath = workspace.Path }, null)
Utils\CliTestHelper.cs (2)
848
return Task.FromResult<BundleLayoutLease?>(new
BundleLayoutLease
(layout, lease: null));
908
return CreateLayoutLease?.Invoke() ?? (Layout is null ? null : new
BundleLayoutLease
(Layout, lease: null));
34 references to BundleLayoutLease
aspire (24)
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)
105
using
var
layoutLease = await EnsureDashboardBundleAsync(cancellationToken).ConfigureAwait(false);
168
private async Task<
BundleLayoutLease
?> EnsureDashboardBundleAsync(CancellationToken cancellationToken)
Commands\DcpWorkloadCleanupService.cs (1)
22
BundleLayoutLease
? layoutLease = null;
Commands\TrayLifecycleService.cs (1)
61
using
var
lease = await bundleService.EnsureExtractedAndAcquireLayoutAsync(
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)
111
var
layoutLease = await bundleService.EnsureExtractedAndAcquireLayoutAsync("cli", "apphost-server", cancellationToken);
130
BundleLayoutLease
? layoutLease,
Projects\DotNetAppHostProject.cs (5)
1494
var
cliBundleLease = await AcquireCliBundleLayoutAsync(cancellationToken);
1495
using
var
cliBundleLeaseScope = cliBundleLease;
2601
private Task<
BundleLayoutLease
?> AcquireCliBundleLayoutAsync(CancellationToken cancellationToken)
2604
private void ConfigureCliBundleBuildEnvironment(Dictionary<string, string> env,
BundleLayoutLease
? layoutLease)
2616
BundleLayoutLease
? layoutLease,
Projects\NativeAppHostServerProject.cs (2)
43
internal
BundleLayoutLease
? LayoutLease { get; init; }
50
var
lease = await bundleService.EnsureExtractedAndAcquireLayoutAsync("cli", "apphost-server-v2", cancellationToken).ConfigureAwait(false);
Projects\PrebuiltAppHostServer.cs (2)
52
private readonly
BundleLayoutLease
? _layoutLease;
93
BundleLayoutLease
? layoutLease = null,
Utils\EnvironmentChecker\DcpConnectionHealthCheck.cs (1)
32
BundleLayoutLease
? layoutLease = null;
Aspire.Cli.Tests (10)
BundleServiceIntegrationTests.cs (2)
365
using
var
layoutLease = await v1Service.EnsureExtractedAndAcquireLayoutAsync("test", "reader");
565
using
var
layoutLease = await service.EnsureExtractedAndAcquireLayoutAsync("test", "sidecarless-flow");
Projects\AppHostServerSessionTests.cs (1)
528
var
layoutLease = new BundleLayoutLease(
Projects\NativeAppHostServerProjectTests.cs (1)
78
var
lease = new BundleLayoutLease(layout, null);
Utils\CliTestHelper.cs (6)
816
public Task<
BundleLayoutLease
?> EnsureExtractedAndAcquireLayoutAsync(string holderKind, string? commandName = null, CancellationToken cancellationToken = default)
817
=> Task.FromResult<
BundleLayoutLease
?>(null);
836
public Task<
BundleLayoutLease
?> EnsureExtractedAndAcquireLayoutAsync(string holderKind, string? commandName = null, CancellationToken cancellationToken = default)
848
return Task.FromResult<
BundleLayoutLease
?>(new BundleLayoutLease(layout, lease: null));
879
public Func<
BundleLayoutLease
>? CreateLayoutLease { get; set; }
893
public async Task<
BundleLayoutLease
?> EnsureExtractedAndAcquireLayoutAsync(string holderKind, string? commandName = null, CancellationToken cancellationToken = default)