1 write to _lease
Aspire.Hosting.Native.Core.Tests (1)
TestServices\WorkloadTestExecutor.cs (1)
109
_lease
= await executor.StartAsync(identity, plan, cancellationToken).ConfigureAwait(false);
6 references to _lease
Aspire.Hosting.Native.Core.Tests (6)
TestServices\WorkloadTestExecutor.cs (6)
98
public WorkloadEndpoint Endpoint =>
_lease
?.Endpoint ?? new("",
105
if (
_lease
is not null)
112
(
_lease
?? throw new InvalidOperationException("The workload has not started.")).ReadStatusAsync(cancellationToken);
114
(
_lease
?? throw new InvalidOperationException("The workload has not started.")).ReadLogsAsync(cancellationToken);
121
if (
_lease
is not null)
123
await
_lease
.DisposeAsync().ConfigureAwait(false);