1 interface inheriting from IWorkloadLease
Aspire.Hosting.Native.Core (1)
Runtime\ResourceWorkload.cs (1)
84internal interface IWorkloadPreparation : IWorkloadLease
1 implementation of IWorkloadLease
Aspire.Hosting.Native.Core.Tests (1)
TestServices\WorkloadTestExecutor.cs (1)
66private sealed class Lease(WorkloadTestExecutor executor, WorkloadIdentity identity, WorkloadPlan plan) : IWorkloadLease
14 references to IWorkloadLease
Aspire.Hosting.Native.Core (9)
Runtime\DeclarativeApplication.cs (1)
384var lease = await executor.StartAsync(new WorkloadIdentity(GenerationId, Guid.NewGuid()),
Runtime\ResourceWorkload.cs (8)
65internal sealed class WorkloadCleanupException(IWorkloadLease lease, Exception failure) : 68public IWorkloadLease Lease { get; } = lease; 74Task<IWorkloadLease> StartAsync(WorkloadIdentity identity, WorkloadPlan plan, CancellationToken cancellationToken); 101public Task<IWorkloadLease> StartAsync(WorkloadIdentity identity, WorkloadPlan plan, CancellationToken cancellationToken) => 140private readonly List<IWorkloadLease> _cleanupLeases = []; 203IWorkloadLease[] leases; 235private async Task CleanupLeaseAsync(IWorkloadLease lease) 281IWorkloadLease lease;
Aspire.Hosting.Native.Core.Tests (3)
DcpWorkloadCleanupTests.cs (1)
270var lease = await new DcpWorkloadExecutor(client, Task.CompletedTask, options).StartAsync(
TestServices\WorkloadTestExecutor.cs (2)
45public async Task<IWorkloadLease> StartAsync(WorkloadIdentity identity, WorkloadPlan plan, CancellationToken cancellationToken) 96private IWorkloadLease? _lease;
Aspire.Hosting.Native.Server (2)
Dcp\DcpWorkloadExecutor.cs (2)
30public Task<IWorkloadLease> StartAsync(WorkloadIdentity identity, WorkloadPlan plan, CancellationToken cancellationToken) => 92private async Task<IWorkloadLease> StartCoreAsync(WorkloadIdentity identity, WorkloadPlan plan,