14 references to IDistributedApplicationPublisher
Aspire.Hosting (3)
DistributedApplicationBuilder.cs (1)
299_innerBuilder.Services.AddKeyedSingleton<IDistributedApplicationPublisher, ManifestPublisher>("manifest");
DistributedApplicationRunner.cs (1)
17return serviceProvider.GetRequiredKeyedService<IDistributedApplicationPublisher>("manifest").PublishAsync(model, stoppingToken);
Publishing\ManifestPublisher.cs (1)
15DistributedApplicationExecutionContext executionContext) : IDistributedApplicationPublisher
Aspire.Hosting.Tests (11)
AsHttp2ServiceTests.cs (3)
19testProgram.AppBuilder.Services.AddKeyedSingleton<IDistributedApplicationPublisher, NoopPublisher>("manifest"); 40testProgram.AppBuilder.Services.AddKeyedSingleton<IDistributedApplicationPublisher, NoopPublisher>("manifest"); 58testProgram.AppBuilder.Services.AddKeyedSingleton<IDistributedApplicationPublisher, NoopPublisher>("manifest");
DistributedApplicationBuilderTests.cs (1)
39Assert.NotNull(app.Services.GetRequiredKeyedService<IDistributedApplicationPublisher>("manifest"));
Helpers\JsonDocumentManifestPublisher.cs (2)
45var publisher = testProgram.App?.Services.GetRequiredKeyedService<IDistributedApplicationPublisher>("manifest") as JsonDocumentManifestPublisher; 51var publisher = services.GetRequiredKeyedService<IDistributedApplicationPublisher>("manifest") as JsonDocumentManifestPublisher;
Helpers\NoopPublisher.cs (1)
8internal sealed class NoopPublisher(IHostApplicationLifetime lifetime) : IDistributedApplicationPublisher
ManifestGenerationTests.cs (2)
155appBuilder.Services.AddKeyedSingleton<IDistributedApplicationPublisher, JsonDocumentManifestPublisher>("manifest"); 544program.AppBuilder.Services.AddKeyedSingleton<IDistributedApplicationPublisher, JsonDocumentManifestPublisher>("manifest");
ProjectResourceTests.cs (1)
653appBuilder.Services.AddKeyedSingleton<IDistributedApplicationPublisher, NoopPublisher>("manifest");
Schema\SchemaTests.cs (1)
211builder.Services.AddKeyedSingleton<IDistributedApplicationPublisher, JsonDocumentManifestPublisher>("manifest");