21 references to ResourceReadyEvent
Aspire.Hosting (2)
Health\ResourceHealthCheckService.cs (2)
55var resourceReadyEvent = new ResourceReadyEvent(resource, services); 79var resourceReadyEvent = new ResourceReadyEvent(resource, services);
Aspire.Hosting.Redis (1)
RedisBuilderExtensions.cs (1)
174builder.ApplicationBuilder.Eventing.Subscribe<ResourceReadyEvent>(resource, async (e, ct) =>
Aspire.Hosting.Redis.Tests (5)
RedisFunctionalTests.cs (5)
157builder1.Eventing.Subscribe<ResourceReadyEvent>(redisInsightBuilder.Resource, (evt, ct) => 195builder2.Eventing.Subscribe<ResourceReadyEvent>(redisInsightBuilder.Resource, (evt, ct) => 246builder.Eventing.Subscribe<ResourceReadyEvent>(redisInsightBuilder.Resource, (evt, ct) => 579builder1.Eventing.Subscribe<ResourceReadyEvent>(redisInsightBuilder1.Resource, (evt, ct) => 622builder2.Eventing.Subscribe<ResourceReadyEvent>(redisInsightBuilder2.Resource, (evt, ct) =>
Aspire.Hosting.Tests (13)
Health\ResourceHealthCheckServiceTests.cs (13)
181var blockAssert = new TaskCompletionSource<ResourceReadyEvent>(); 182builder.Eventing.Subscribe<ResourceReadyEvent>(resource.Resource, (@event, ct) => 197var @event = await blockAssert.Task.DefaultTimeout(); 261var resourceReadyEventFired = new TaskCompletionSource<ResourceReadyEvent>(); 262builder.Eventing.Subscribe<ResourceReadyEvent>(parent.Resource, (@event, ct) => 321var resourceReadyEventFired = new TaskCompletionSource<ResourceReadyEvent>(); 322builder.Eventing.Subscribe<ResourceReadyEvent>(parent.Resource, (@event, ct) => 365var parentReady = new TaskCompletionSource<ResourceReadyEvent>(); 366builder.Eventing.Subscribe<ResourceReadyEvent>(parent.Resource, (@event, ct) => 374var childReady = new TaskCompletionSource<ResourceReadyEvent>(); 375builder.Eventing.Subscribe<ResourceReadyEvent>(child.Resource, (@event, ct) => 399var parentReadyEvent = await parentReady.Task.DefaultTimeout(); 402var childReadyEvent = await childReady.Task.DefaultTimeout();