21 references to ClientCertificate
Aspire.Dashboard (12)
Configuration\ValidateDashboardOptions.cs (4)
116
switch (options.ResourceServiceClient.
ClientCertificate
.Source)
119
if (string.IsNullOrEmpty(options.ResourceServiceClient.
ClientCertificate
.FilePath))
125
if (string.IsNullOrEmpty(options.ResourceServiceClient.
ClientCertificate
.Subject))
134
errorMessages.Add($"Unexpected resource service client certificate source: {options.ResourceServiceClient.
ClientCertificate
.Source}");
ResourceService\DashboardClient.cs (8)
128
var certificates = _dashboardOptions.ResourceServiceClient.
ClientCertificate
.Source switch
175
_dashboardOptions.ResourceServiceClient.
ClientCertificate
.FilePath != null,
178
var filePath = _dashboardOptions.ResourceServiceClient.
ClientCertificate
.FilePath;
179
var password = _dashboardOptions.ResourceServiceClient.
ClientCertificate
.Password;
187
_dashboardOptions.ResourceServiceClient.
ClientCertificate
.Subject != null,
190
var subject = _dashboardOptions.ResourceServiceClient.
ClientCertificate
.Subject;
191
var storeName = _dashboardOptions.ResourceServiceClient.
ClientCertificate
.Store ?? "My";
192
var location = _dashboardOptions.ResourceServiceClient.
ClientCertificate
.Location ?? StoreLocation.CurrentUser;
Aspire.Dashboard.Tests (9)
DashboardOptionsTests.cs (7)
127
options.ResourceServiceClient.
ClientCertificate
.Source = DashboardClientCertificateSource.File;
128
options.ResourceServiceClient.
ClientCertificate
.FilePath = "";
142
options.ResourceServiceClient.
ClientCertificate
.Source = DashboardClientCertificateSource.KeyStore;
143
options.ResourceServiceClient.
ClientCertificate
.Subject = "";
157
options.ResourceServiceClient.
ClientCertificate
.Source = null;
171
options.ResourceServiceClient.
ClientCertificate
.Source = (DashboardClientCertificateSource)int.MaxValue;
176
Assert.Equal($"Unexpected resource service client certificate source: {options.ResourceServiceClient.
ClientCertificate
.Source}", result.FailureMessage);
Integration\StartupTests.cs (2)
512
Assert.Equal(DashboardClientCertificateSource.KeyStore, app.DashboardOptionsMonitor.CurrentValue.ResourceServiceClient.
ClientCertificate
.Source);
513
Assert.Equal("MySubject", app.DashboardOptionsMonitor.CurrentValue.ResourceServiceClient.
ClientCertificate
.Subject);