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