4 writes to ResourceReadyEvent
Aspire.Hosting (1)
Health\ResourceHealthCheckService.cs (1)
265ResourceReadyEvent = new(task)
Aspire.Hosting.Tests (3)
ResourceNotificationTests.cs (3)
553ResourceReadyEvent = eventSnapshot 592ResourceReadyEvent = eventSnapshot 625ResourceReadyEvent = new EventSnapshot(Task.CompletedTask)
7 references to ResourceReadyEvent
Aspire.Hosting (5)
ApplicationModel\ResourceNotificationService.cs (5)
157resourceEvent = await WaitForResourceCoreAsync(dependency.Name, re => re.ResourceId == resourceId && re.Snapshot.ResourceReadyEvent is not null, cancellationToken: cancellationToken).ConfigureAwait(false); 160await resourceEvent.Snapshot.ResourceReadyEvent!.EventTask.WaitAsync(cancellationToken).ConfigureAwait(false); 231resourceEvent = await WaitForResourceCoreAsync(resourceName, re => re.ResourceId == resourceEvent.ResourceId && re.Snapshot.ResourceReadyEvent is not null, cancellationToken: cancellationToken).ConfigureAwait(false); 234await resourceEvent.Snapshot.ResourceReadyEvent!.EventTask.WaitAsync(cancellationToken).ConfigureAwait(false); 655newState.ResourceReadyEvent is not null,
Aspire.Hosting.Tests (2)
ResourceNotificationTests.cs (2)
566Assert.NotNull(resourceEvent.Snapshot.ResourceReadyEvent); 567Assert.True(resourceEvent.Snapshot.ResourceReadyEvent.EventTask.IsCompletedSuccessfully);