3 implementations of IDeveloperCertificateService
Aspire.Hosting (1)
DeveloperCertificateService.cs (1)
15
internal class DeveloperCertificateService :
IDeveloperCertificateService
Aspire.Hosting.Tests (2)
ExecutionConfigurationGathererTests.cs (1)
830
private sealed class TestDeveloperCertificateService :
IDeveloperCertificateService
Utils\TestDeveloperCertificateService.cs (1)
10
public sealed class TestDeveloperCertificateService(List<X509Certificate2> certificates, bool supportsContainerTrust, bool trustCertificate, bool tlsTerminate, bool latestCertificateIsUntrusted = false) :
IDeveloperCertificateService
31 references to IDeveloperCertificateService
Aspire.Hosting (14)
ApplicationModel\CertificateTrustExecutionConfigurationGatherer.cs (2)
34
var
developerCertificateService = executionContext.ServiceProvider.GetRequiredService<
IDeveloperCertificateService
>();
ApplicationModel\HttpsCertificateExecutionConfigurationGatherer.cs (2)
41
var
developerCertificateService = executionContext.ServiceProvider.GetRequiredService<
IDeveloperCertificateService
>();
Dashboard\DashboardEventHandlers.cs (2)
459
var
developerCertificateService = executionContext.ServiceProvider.GetRequiredService<
IDeveloperCertificateService
>();
Dcp\DcpExecutor.cs (2)
80
private readonly
IDeveloperCertificateService
_developerCertificateService;
115
IDeveloperCertificateService
developerCertificateService)
Dcp\DcpHost.cs (2)
35
private readonly
IDeveloperCertificateService
_developerCertificateService;
58
IDeveloperCertificateService
developerCertificateService,
DistributedApplicationBuilder.cs (1)
377
_innerBuilder.Services.AddSingleton<
IDeveloperCertificateService
, DeveloperCertificateService>();
ResourceBuilderExtensions.cs (3)
2849
/// <item>No <see cref="HttpsCertificateAnnotation"/> is present and the <see cref="
IDeveloperCertificateService
"/> indicates
2875
var
developerCertificateService = @event.Services.GetRequiredService<
IDeveloperCertificateService
>();
Aspire.Hosting.Azure.Tests (4)
AzureCosmosDBExtensionsTests.cs (4)
715
builder.Services.AddSingleton<
IDeveloperCertificateService
>(new TestDeveloperCertificateService(
746
builder.Services.AddSingleton<
IDeveloperCertificateService
>(new TestDeveloperCertificateService(
778
builder.Services.AddSingleton<
IDeveloperCertificateService
>(new TestDeveloperCertificateService(
807
builder.Services.AddSingleton<
IDeveloperCertificateService
>(new TestDeveloperCertificateService(
Aspire.Hosting.Tests (5)
Dashboard\DashboardLifecycleHookTests.cs (1)
578
.AddService<
IDeveloperCertificateService
>(new TestDeveloperCertificateService([], supportsContainerTrust: true, trustCertificate: true, tlsTerminate: true));
Dcp\DcpExecutorTests.cs (1)
2582
.AddService<
IDeveloperCertificateService
>(developerCertificateService)
DistributedApplicationTests.cs (2)
864
var
dc = app.Services.GetRequiredService<
IDeveloperCertificateService
>();
ExecutionConfigurationGathererTests.cs (1)
666
builder.Services.AddSingleton<
IDeveloperCertificateService
>(new TestDeveloperCertificateService(devCert));
Aspire.Hosting.Yarp (2)
YarpResourceExtensions.cs (2)
80
var
developerCertificateService = ctx.ExecutionContext.ServiceProvider.GetRequiredService<
IDeveloperCertificateService
>();
Aspire.Hosting.Yarp.Tests (6)
AddYarpTests.cs (6)
44
testProvider.AddService<
IDeveloperCertificateService
>(new TestDeveloperCertificateService(
93
testProvider.AddService<
IDeveloperCertificateService
>(new TestDeveloperCertificateService(
116
testProvider.AddService<
IDeveloperCertificateService
>(new TestDeveloperCertificateService(
138
testProvider.AddService<
IDeveloperCertificateService
>(new TestDeveloperCertificateService(
405
builder.Services.AddSingleton<
IDeveloperCertificateService
>(new TestDeveloperCertificateService(
433
builder.Services.AddSingleton<
IDeveloperCertificateService
>(new TestDeveloperCertificateService(