1 implementation of PublishAsync
Aspire.Hosting (1)
260 references to PublishAsync
Aspire.Hosting (13)
Aspire.Hosting.Azure (2)
Aspire.Hosting.Azure.EntraId (1)
Aspire.Hosting.Azure.EntraId.Tests (1)
Aspire.Hosting.Azure.Tests (10)
Aspire.Hosting.Blazor.Tests (1)
Aspire.Hosting.Browsers.Tests (1)
Aspire.Hosting.DevTunnels.Tests (2)
Aspire.Hosting.Dotnet.Tests (36)
Aspire.Hosting.EntityFrameworkCore.Tests (2)
Aspire.Hosting.Foundry (1)
Aspire.Hosting.Foundry.Tests (1)
Aspire.Hosting.Go.Tests (4)
Aspire.Hosting.Java.Tests (16)
Aspire.Hosting.JavaScript.Tests (1)
Aspire.Hosting.Kafka.Tests (3)
Aspire.Hosting.Keycloak.Tests (1)
Aspire.Hosting.Maui (2)
Aspire.Hosting.Maui.Tests (61)
MauiiOSValidationTests.cs (6)
36.PublishAsync(new BeforeResourceStartedEvent(device.Resource, app.Services), CancellationToken.None)
62.PublishAsync(new BeforeResourceStartedEvent(simulator.Resource, app.Services), CancellationToken.None)
87.PublishAsync(new BeforeResourceStartedEvent(device.Resource, app.Services), CancellationToken.None)
108.PublishAsync(new BeforeResourceStartedEvent(simulator.Resource, app.Services), CancellationToken.None)
127.PublishAsync(new BeforeResourceStartedEvent(device.Resource, app.Services), CancellationToken.None)
146.PublishAsync(new BeforeResourceStartedEvent(simulator.Resource, app.Services), CancellationToken.None)
MauiPlatformExtensionsTests.cs (15)
296.PublishAsync(new BeforeResourceStartedEvent(platform.Resource, app.Services), CancellationToken.None)
594await eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services), CancellationToken.None).DefaultTimeout();
775await appBuilder.Eventing.PublishAsync(new ResourceEndpointsAllocatedEvent(dashboard.Resource, app.Services), CancellationToken.None).DefaultTimeout();
831await appBuilder.Eventing.PublishAsync(
843await appBuilder.Eventing.PublishAsync(
891await appBuilder.Eventing.PublishAsync(
941await appBuilder.Eventing.PublishAsync(
995await appBuilder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()), CancellationToken.None).DefaultTimeout();
999await appBuilder.Eventing.PublishAsync(new ResourceEndpointsAllocatedEvent(dashboard.Resource, app.Services), CancellationToken.None).DefaultTimeout();
1119appBuilder.Eventing.PublishAsync(new BeforeResourceStartedEvent(tunnelConfig.DevTunnel.Resource, app.Services), CancellationToken.None).DefaultTimeout());
1145appBuilder.Eventing.PublishAsync(new BeforeResourceStartedEvent(tunnelConfig.DevTunnel.Resource, app.Services), CancellationToken.None).DefaultTimeout());
1174appBuilder.Eventing.PublishAsync(
1225appBuilder.Eventing.PublishAsync(
1249await appBuilder.Eventing.PublishAsync(
1341var beforeStartTask = appBuilder.Eventing.PublishAsync(
Aspire.Hosting.MongoDB (2)
Aspire.Hosting.MongoDB.Tests (16)
AddMongoDBTests.cs (10)
140await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
170await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
469await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel));
494await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel));
520await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel));
541await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel));
579await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel));
620await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel));
640await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel));
658await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel));
Aspire.Hosting.MySql.Tests (4)
Aspire.Hosting.OpenAI (2)
Aspire.Hosting.Python.Tests (1)
Aspire.Hosting.Redis.Tests (8)
Aspire.Hosting.SqlServer.Tests (2)
Aspire.Hosting.Tests (61)
RequiredCommandAnnotationTests.cs (17)
156await eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services));
173await eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services));
191await eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services));
214await eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services));
241await eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services));
267await eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services));
288await eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services));
309await eventing.PublishAsync(new BeforeResourceStartedEvent(resource1, app.Services));
310await eventing.PublishAsync(new BeforeResourceStartedEvent(resource2, app.Services));
340await eventing.PublishAsync(new BeforeResourceStartedEvent(resource1, app.Services));
341await eventing.PublishAsync(new BeforeResourceStartedEvent(resource2, app.Services));
375await eventing.PublishAsync(new BeforeResourceStartedEvent(resource1, app.Services));
376await eventing.PublishAsync(new BeforeResourceStartedEvent(resource2, app.Services));
400var publishTask = eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services));
431await eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services));
458var publishTask1 = eventing.PublishAsync(new BeforeResourceStartedEvent(resource1, app.Services));
464await eventing.PublishAsync(new BeforeResourceStartedEvent(resource2, app.Services));
WithTerminalTests.cs (13)
356await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
411await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
447await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
525await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
615await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
667await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
1063await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
1079await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
1097await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
1427await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
1449await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
1476await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
1498await Assert.ThrowsAsync<IOException>(async () => await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)));
Aspire.Hosting.Yarp.Tests (2)
CustomResources.AppHost (3)