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
17 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)
52
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 (3)
RedisFunctionalTests.cs (3)
156
builder1.Eventing.
Subscribe
<ResourceReadyEvent>(redisInsightBuilder.Resource, (evt, ct) =>
194
builder2.Eventing.
Subscribe
<ResourceReadyEvent>(redisInsightBuilder.Resource, (evt, ct) =>
245
builder.Eventing.
Subscribe
<ResourceReadyEvent>(redisInsightBuilder.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)
181
builder.Eventing.
Subscribe
<ResourceReadyEvent>(resource.Resource, (@event, ct) =>
261
builder.Eventing.
Subscribe
<ResourceReadyEvent>(parent.Resource, (@event, ct) =>
321
builder.Eventing.
Subscribe
<ResourceReadyEvent>(parent.Resource, (@event, ct) =>
365
builder.Eventing.
Subscribe
<ResourceReadyEvent>(parent.Resource, (@event, ct) =>
374
builder.Eventing.
Subscribe
<ResourceReadyEvent>(child.Resource, (@event, ct) =>