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)
130
var certificates = _dashboardOptions.ResourceServiceClient.
ClientCertificate
.Source switch
177
_dashboardOptions.ResourceServiceClient.
ClientCertificate
.FilePath != null,
180
var filePath = _dashboardOptions.ResourceServiceClient.
ClientCertificate
.FilePath;
181
var password = _dashboardOptions.ResourceServiceClient.
ClientCertificate
.Password;
189
_dashboardOptions.ResourceServiceClient.
ClientCertificate
.Subject != null,
192
var subject = _dashboardOptions.ResourceServiceClient.
ClientCertificate
.Subject;
193
var storeName = _dashboardOptions.ResourceServiceClient.
ClientCertificate
.Store ?? "My";
194
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)
476
Assert.Equal(DashboardClientCertificateSource.KeyStore, app.DashboardOptionsMonitor.CurrentValue.ResourceServiceClient.
ClientCertificate
.Source);
477
Assert.Equal("MySubject", app.DashboardOptionsMonitor.CurrentValue.ResourceServiceClient.
ClientCertificate
.Subject);