21 references to ClientCertificate
Aspire.Dashboard (12)
Configuration\ValidateDashboardOptions.cs (4)
148
switch (options.ResourceServiceClient.
ClientCertificate
.Source)
151
if (string.IsNullOrEmpty(options.ResourceServiceClient.
ClientCertificate
.FilePath))
157
if (string.IsNullOrEmpty(options.ResourceServiceClient.
ClientCertificate
.Subject))
166
errorMessages.Add($"Unexpected resource service client certificate source: {options.ResourceServiceClient.
ClientCertificate
.Source}");
ServiceClient\DashboardClient.cs (8)
156
var certificates = _dashboardOptions.ResourceServiceClient.
ClientCertificate
.Source switch
204
_dashboardOptions.ResourceServiceClient.
ClientCertificate
.FilePath != null,
207
var filePath = _dashboardOptions.ResourceServiceClient.
ClientCertificate
.FilePath;
208
var password = _dashboardOptions.ResourceServiceClient.
ClientCertificate
.Password;
216
_dashboardOptions.ResourceServiceClient.
ClientCertificate
.Subject != null,
219
var subject = _dashboardOptions.ResourceServiceClient.
ClientCertificate
.Subject;
220
var storeName = _dashboardOptions.ResourceServiceClient.
ClientCertificate
.Store ?? "My";
221
var location = _dashboardOptions.ResourceServiceClient.
ClientCertificate
.Location ?? StoreLocation.CurrentUser;
Aspire.Dashboard.Tests (9)
DashboardOptionsTests.cs (7)
181
options.ResourceServiceClient.
ClientCertificate
.Source = DashboardClientCertificateSource.File;
182
options.ResourceServiceClient.
ClientCertificate
.FilePath = "";
196
options.ResourceServiceClient.
ClientCertificate
.Source = DashboardClientCertificateSource.KeyStore;
197
options.ResourceServiceClient.
ClientCertificate
.Subject = "";
211
options.ResourceServiceClient.
ClientCertificate
.Source = null;
225
options.ResourceServiceClient.
ClientCertificate
.Source = (DashboardClientCertificateSource)int.MaxValue;
230
Assert.Equal($"Unexpected resource service client certificate source: {options.ResourceServiceClient.
ClientCertificate
.Source}", result.FailureMessage);
Integration\StartupTests.cs (2)
600
Assert.Equal(DashboardClientCertificateSource.KeyStore, app.DashboardOptionsMonitor.CurrentValue.ResourceServiceClient.
ClientCertificate
.Source);
601
Assert.Equal("MySubject", app.DashboardOptionsMonitor.CurrentValue.ResourceServiceClient.
ClientCertificate
.Subject);