1 implementation of Subscribe
Aspire.Hosting (1)
Eventing\DistributedApplicationEventing.cs (1)
106
public DistributedApplicationEventSubscription
Subscribe
<T>(IResource resource, Func<T, CancellationToken, Task> callback) where T : IDistributedApplicationResourceEvent
19 references to Subscribe
Aspire.Hosting.Elasticsearch (1)
ElasticsearchBuilderExtensions.cs (1)
61
builder.Eventing.
Subscribe
<ConnectionStringAvailableEvent>(elasticsearch, async (@event, ct) =>
Aspire.Hosting.MongoDB (1)
MongoDBBuilderExtensions.cs (1)
109
builder.ApplicationBuilder.Eventing.
Subscribe
<ConnectionStringAvailableEvent>(mongoDBDatabase, async (@event, ct) =>
Aspire.Hosting.MySql (1)
MySqlBuilderExtensions.cs (1)
40
builder.Eventing.
Subscribe
<ConnectionStringAvailableEvent>(resource, async (@event, ct) =>
Aspire.Hosting.Oracle (1)
OracleDatabaseBuilderExtensions.cs (1)
36
builder.Eventing.
Subscribe
<ConnectionStringAvailableEvent>(oracleDatabaseServer, async (@event, ct) =>
Aspire.Hosting.PostgreSQL (1)
PostgresBuilderExtensions.cs (1)
55
builder.Eventing.
Subscribe
<ConnectionStringAvailableEvent>(postgresServer, async (@event, ct) =>
Aspire.Hosting.Qdrant (1)
QdrantBuilderExtensions.cs (1)
53
builder.Eventing.
Subscribe
<ConnectionStringAvailableEvent>(qdrant, async (@event, ct) =>
Aspire.Hosting.RabbitMQ (1)
RabbitMQBuilderExtensions.cs (1)
44
builder.Eventing.
Subscribe
<ConnectionStringAvailableEvent>(rabbitMq, async (@event, 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.SqlServer (1)
SqlServerBuilderExtensions.cs (1)
38
builder.Eventing.
Subscribe
<ConnectionStringAvailableEvent>(sqlServer, async (@event, ct) =>
Aspire.Hosting.Tests (6)
Eventing\DistributedApplicationBuilderEventingTests.cs (1)
182
builder.Eventing.
Subscribe
<BeforeResourceStartedEvent>(redis.Resource, (e, ct) =>
Health\ResourceHealthCheckServiceTests.cs (5)
182
builder.Eventing.
Subscribe
<ResourceReadyEvent>(resource.Resource, (@event, ct) =>
262
builder.Eventing.
Subscribe
<ResourceReadyEvent>(parent.Resource, (@event, ct) =>
322
builder.Eventing.
Subscribe
<ResourceReadyEvent>(parent.Resource, (@event, ct) =>
366
builder.Eventing.
Subscribe
<ResourceReadyEvent>(parent.Resource, (@event, ct) =>
375
builder.Eventing.
Subscribe
<ResourceReadyEvent>(child.Resource, (@event, ct) =>