12 references to DashboardClientCertificateSource
Aspire.Dashboard (6)
Configuration\DashboardOptions.cs (1)
56
public
DashboardClientCertificateSource
? Source { get; set; }
Configuration\ValidateDashboardOptions.cs (3)
118
case
DashboardClientCertificateSource
.File:
124
case
DashboardClientCertificateSource
.KeyStore:
131
errorMessages.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)
132
DashboardClientCertificateSource
.File => GetFileCertificate(),
133
DashboardClientCertificateSource
.KeyStore => GetKeyStoreCertificate(),
Aspire.Dashboard.Tests (6)
DashboardOptionsTests.cs (4)
127
options.ResourceServiceClient.ClientCertificate.Source =
DashboardClientCertificateSource
.File;
142
options.ResourceServiceClient.ClientCertificate.Source =
DashboardClientCertificateSource
.KeyStore;
162
Assert.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);
171
options.ResourceServiceClient.ClientCertificate.Source = (
DashboardClientCertificateSource
)int.MaxValue;
Integration\StartupTests.cs (2)
470
data[DashboardConfigNames.ResourceServiceClientCertificateSourceName.ConfigKey] = nameof(
DashboardClientCertificateSource
.KeyStore);
476
Assert.Equal(
DashboardClientCertificateSource
.KeyStore, app.DashboardOptionsMonitor.CurrentValue.ResourceServiceClient.ClientCertificate.Source);