1 implementation of PublishAsync
Aspire.Hosting (1)
206 references to PublishAsync
Aspire.Hosting (13)
Aspire.Hosting.Azure (2)
Aspire.Hosting.Azure.Tests (8)
Aspire.Hosting.Blazor.Tests (1)
Aspire.Hosting.Browsers.Tests (1)
Aspire.Hosting.DevTunnels (2)
Aspire.Hosting.DevTunnels.Tests (3)
Aspire.Hosting.Dotnet.Tests (9)
Aspire.Hosting.Foundry (1)
Aspire.Hosting.Foundry.Tests (1)
Aspire.Hosting.GitHub.Models (1)
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 (59)
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)
297.PublishAsync(new BeforeResourceStartedEvent(platform.Resource, app.Services), CancellationToken.None)
595await eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services), CancellationToken.None).DefaultTimeout();
776await appBuilder.Eventing.PublishAsync(new ResourceEndpointsAllocatedEvent(dashboard.Resource, app.Services), CancellationToken.None).DefaultTimeout();
832await appBuilder.Eventing.PublishAsync(
844await appBuilder.Eventing.PublishAsync(
892await appBuilder.Eventing.PublishAsync(
942await appBuilder.Eventing.PublishAsync(
996await appBuilder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()), CancellationToken.None).DefaultTimeout();
1000await appBuilder.Eventing.PublishAsync(new ResourceEndpointsAllocatedEvent(dashboard.Resource, app.Services), CancellationToken.None).DefaultTimeout();
1120appBuilder.Eventing.PublishAsync(new BeforeResourceStartedEvent(tunnelConfig.DevTunnel.Resource, app.Services), CancellationToken.None).DefaultTimeout());
1146appBuilder.Eventing.PublishAsync(new BeforeResourceStartedEvent(tunnelConfig.DevTunnel.Resource, app.Services), CancellationToken.None).DefaultTimeout());
1175appBuilder.Eventing.PublishAsync(
1226appBuilder.Eventing.PublishAsync(
1250await appBuilder.Eventing.PublishAsync(
1342var beforeStartTask = appBuilder.Eventing.PublishAsync(
Aspire.Hosting.MongoDB (2)
Aspire.Hosting.MongoDB.Tests (12)
Aspire.Hosting.MySql.Tests (2)
Aspire.Hosting.OpenAI (2)
Aspire.Hosting.Python.Tests (1)
Aspire.Hosting.Redis.Tests (8)
Aspire.Hosting.Tests (50)
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 (10)
295await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
345await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
423await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
511await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
563await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
959await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
975await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
993await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
1323await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
1345await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
Aspire.Hosting.Yarp.Tests (2)
CustomResources.AppHost (3)