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