12 references to DashboardClientCertificateSource
Aspire.Dashboard (6)
Configuration\DashboardOptions.cs (1)
56public DashboardClientCertificateSource? Source { get; set; }
Configuration\ValidateDashboardOptions.cs (3)
118case DashboardClientCertificateSource.File: 124case DashboardClientCertificateSource.KeyStore: 131errorMessages.Add($"The resource service client is configured to use certificates, but no certificate source is specified. Specify {DashboardConfigNames.ResourceServiceClientCertificateSourceName.ConfigKey}. Possible values: {string.Join(", ", typeof(DashboardClientCertificateSource).GetEnumNames())}");
ResourceService\DashboardClient.cs (2)
132DashboardClientCertificateSource.File => GetFileCertificate(), 133DashboardClientCertificateSource.KeyStore => GetKeyStoreCertificate(),
Aspire.Dashboard.Tests (6)
DashboardOptionsTests.cs (4)
127options.ResourceServiceClient.ClientCertificate.Source = DashboardClientCertificateSource.File; 142options.ResourceServiceClient.ClientCertificate.Source = DashboardClientCertificateSource.KeyStore; 162Assert.Equal($"The resource service client is configured to use certificates, but no certificate source is specified. Specify {DashboardConfigNames.ResourceServiceClientCertificateSourceName.ConfigKey}. Possible values: {string.Join(", ", typeof(DashboardClientCertificateSource).GetEnumNames())}", result.FailureMessage); 171options.ResourceServiceClient.ClientCertificate.Source = (DashboardClientCertificateSource)int.MaxValue;
Integration\StartupTests.cs (2)
470data[DashboardConfigNames.ResourceServiceClientCertificateSourceName.ConfigKey] = nameof(DashboardClientCertificateSource.KeyStore); 476Assert.Equal(DashboardClientCertificateSource.KeyStore, app.DashboardOptionsMonitor.CurrentValue.ResourceServiceClient.ClientCertificate.Source);