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