154 instantiations of BeforeResourceStartedEvent
Aspire.Hosting (3)
Aspire.Hosting.Azure (1)
Aspire.Hosting.Azure.EntraId (1)
Aspire.Hosting.DevTunnels (1)
Aspire.Hosting.DevTunnels.Tests (2)
Aspire.Hosting.Dotnet.Tests (36)
DotnetProjectBuildCoordinatorTests.cs (32)
84new BeforeResourceStartedEvent(buildResource, app.Services),
122new BeforeResourceStartedEvent(buildResource, app.Services),
166new BeforeResourceStartedEvent(buildResource, app.Services),
183new BeforeResourceStartedEvent(buildResource, app.Services),
228new BeforeResourceStartedEvent(buildResource, app.Services),
247new BeforeResourceStartedEvent(rebuilder, app.Services),
312new BeforeResourceStartedEvent(buildResource, app.Services),
721new BeforeResourceStartedEvent(buildResource, app.Services),
741new BeforeResourceStartedEvent(rebuilder, app.Services),
785new BeforeResourceStartedEvent(rebuilder, app.Services),
889new BeforeResourceStartedEvent(projectBuild, app.Services),
892new BeforeResourceStartedEvent(fileBuild, app.Services),
1731new BeforeResourceStartedEvent(dependent, app.Services),
1780new BeforeResourceStartedEvent(project.Resource, app.Services),
1820new BeforeResourceStartedEvent(project.Resource, app.Services),
1845new BeforeResourceStartedEvent(buildResource, app.Services),
1869new BeforeResourceStartedEvent(project.Resource, app.Services),
1895new BeforeResourceStartedEvent(buildResource, app.Services),
1915new BeforeResourceStartedEvent(buildResource, app.Services),
1935new BeforeResourceStartedEvent(project.Resource, app.Services),
2015new BeforeResourceStartedEvent(buildResource, app.Services),
2074new BeforeResourceStartedEvent(target, app.Services),
2194new BeforeResourceStartedEvent(buildResource, app.Services),
2292new BeforeResourceStartedEvent(project.Resource, app.Services),
2416new BeforeResourceStartedEvent(buildResource, app.Services),
2433new BeforeResourceStartedEvent(buildResource, app.Services),
2645new BeforeResourceStartedEvent(buildResource, app.Services),
2693new BeforeResourceStartedEvent(rebuilder, app.Services),
2762new BeforeResourceStartedEvent(buildResource, app.Services),
2772new BeforeResourceStartedEvent(rebuilder, app.Services),
2898new BeforeResourceStartedEvent(buildResource, app.Services),
2921new BeforeResourceStartedEvent(rebuilder, app.Services),
Aspire.Hosting.Java.Tests (16)
AddSpringBootAppTests.cs (9)
22new BeforeResourceStartedEvent(app.Resource, application.Services),
39new BeforeResourceStartedEvent(app.Resource, application.Services),
56new BeforeResourceStartedEvent(app.Resource, application.Services),
76new BeforeResourceStartedEvent(runApp.Resource, application.Services),
114new BeforeResourceStartedEvent(app.Resource, application.Services),
137new BeforeResourceStartedEvent(app.Resource, application.Services),
190new BeforeResourceStartedEvent(app.Resource, application.Services),
211new BeforeResourceStartedEvent(runApp.Resource, application.Services),
238new BeforeResourceStartedEvent(app.Resource, application.Services),
Aspire.Hosting.Kafka.Tests (1)
Aspire.Hosting.Maui.Tests (54)
MauiBuildQueueTests.cs (40)
58new BeforeResourceStartedEvent(env.Android, env.Services),
78new BeforeResourceStartedEvent(env.Android, env.Services),
91new BeforeResourceStartedEvent(env.Android, env.Services),
98new BeforeResourceStartedEvent(env.MacCatalyst, env.Services),
119new BeforeResourceStartedEvent(env.Android, env.Services),
127new BeforeResourceStartedEvent(env.MacCatalyst, env.Services),
147new BeforeResourceStartedEvent(env.Android, env.Services),
163new BeforeResourceStartedEvent(env.Android, env.Services),
167new BeforeResourceStartedEvent(env.Android2!, env.Services),
194new BeforeResourceStartedEvent(env.Android, env.Services),
208new BeforeResourceStartedEvent(env.Android, env.Services),
216new BeforeResourceStartedEvent(env.MacCatalyst, env.Services),
231new BeforeResourceStartedEvent(env.IOSSimulator, env.Services),
245new BeforeResourceStartedEvent(env.Android, env.Services),
258new BeforeResourceStartedEvent(env.MacCatalyst, env.Services),
266new BeforeResourceStartedEvent(env.IOSSimulator, env.Services),
324new BeforeResourceStartedEvent(env.Android, env.Services),
331new BeforeResourceStartedEvent(env.Parent, env.Services),
348new BeforeResourceStartedEvent(env.Android, env.Services),
358new BeforeResourceStartedEvent(env.Android, env.Services),
389new BeforeResourceStartedEvent(android, app.Services),
427new BeforeResourceStartedEvent(android, app.Services),
448new BeforeResourceStartedEvent(env.Android, env.Services),
495new BeforeResourceStartedEvent(env.Android, env.Services),
503new BeforeResourceStartedEvent(env.MacCatalyst, env.Services),
534new BeforeResourceStartedEvent(env.Android, env.Services),
565new BeforeResourceStartedEvent(env.MacCatalyst, env.Services),
585new BeforeResourceStartedEvent(env.Android, env.Services),
620new BeforeResourceStartedEvent(env.Android, env.Services),
642new BeforeResourceStartedEvent(env.Android, env.Services),
719new BeforeResourceStartedEvent(env.Android, env.Services),
722new BeforeResourceStartedEvent(env.MacCatalyst, env.Services),
873new BeforeResourceStartedEvent(env.Android, env.Services),
891new BeforeResourceStartedEvent(env.Android, env.Services),
961new BeforeResourceStartedEvent(env.Android, env.Services),
981new BeforeResourceStartedEvent(env.Android, env.Services),
1068new BeforeResourceStartedEvent(env.Android, env.Services),
1078new BeforeResourceStartedEvent(env.MacCatalyst, env.Services),
1082new BeforeResourceStartedEvent(env.IOSSimulator, env.Services),
1125new BeforeResourceStartedEvent(env.Android, env.Services),
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 (8)
296.PublishAsync(new BeforeResourceStartedEvent(platform.Resource, app.Services), CancellationToken.None)
594await eventing.PublishAsync(new BeforeResourceStartedEvent(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());
1175new BeforeResourceStartedEvent(tunnelConfig.DevTunnel.Resource, app.Services),
1226new BeforeResourceStartedEvent(resolutionEventResource, app.Services),
1250new BeforeResourceStartedEvent(resolutionEventResource, app.Services),
1342new BeforeResourceStartedEvent(tunnelConfig.DevTunnel.Resource, app.Services),
Aspire.Hosting.MongoDB (1)
Aspire.Hosting.MongoDB.Tests (1)
Aspire.Hosting.MySql.Tests (5)
Aspire.Hosting.Redis.Tests (3)
Aspire.Hosting.Tests (26)
RequiredCommandAnnotationTests.cs (17)
157await eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services));
174await eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services));
192await eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services));
215await eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services));
242await eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services));
273await eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services))
304await eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services));
325await eventing.PublishAsync(new BeforeResourceStartedEvent(resource1, app.Services));
326await eventing.PublishAsync(new BeforeResourceStartedEvent(resource2, app.Services));
356await eventing.PublishAsync(new BeforeResourceStartedEvent(resource1, app.Services));
357await eventing.PublishAsync(new BeforeResourceStartedEvent(resource2, app.Services));
391await eventing.PublishAsync(new BeforeResourceStartedEvent(resource1, app.Services));
392await eventing.PublishAsync(new BeforeResourceStartedEvent(resource2, app.Services));
416var publishTask = eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services));
447await eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services));
474var publishTask1 = eventing.PublishAsync(new BeforeResourceStartedEvent(resource1, app.Services));
480await eventing.PublishAsync(new BeforeResourceStartedEvent(resource2, app.Services));
CustomResources.AppHost (3)
45 references to BeforeResourceStartedEvent
Aspire.Hosting (12)
Aspire.Hosting.Azure (1)
Aspire.Hosting.Azure.EntraId (1)
Aspire.Hosting.DevTunnels (1)
Aspire.Hosting.Dotnet (4)
Aspire.Hosting.Kafka (1)
Aspire.Hosting.Maui (7)
Aspire.Hosting.MySql (1)
Aspire.Hosting.MySql.Tests (4)
Aspire.Hosting.Redis (1)
Aspire.Hosting.Redis.Tests (3)
Aspire.Hosting.Tests (8)
MySqlDb.AppHost (1)