2 writes to Scope
Aspire.Hosting (2)
ApplicationModel\CertificateTrustExecutionConfigurationGatherer.cs (2)
40additionalData.Scope = CertificateTrustScope.Append; 50additionalData.Scope = caAnnotation.Scope.GetValueOrDefault(additionalData.Scope);
16 references to Scope
Aspire.Hosting (12)
ApplicationModel\CertificateTrustExecutionConfigurationGatherer.cs (8)
50additionalData.Scope = caAnnotation.Scope.GetValueOrDefault(additionalData.Scope); 53if (additionalData.Scope == CertificateTrustScope.None) 59if (additionalData.Scope == CertificateTrustScope.System) 82var configurationContext = _configContextFactory(additionalData.Scope); 87if (additionalData.Scope != CertificateTrustScope.Append) 96Scope = additionalData.Scope, 112if (additionalData.Scope == CertificateTrustScope.System) 114resourceLogger.LogInformation("Resource '{ResourceName}' has a certificate trust scope of '{Scope}'. Automatically including system root certificates in the trusted configuration.", resource.Name, Enum.GetName(additionalData.Scope));
Dcp\DcpExecutor.cs (4)
1649&& certificateTrustConfiguration.Scope != CertificateTrustScope.None 1999&& certificateTrustConfiguration.Scope != CertificateTrustScope.None 2016if (certificateTrustConfiguration.Scope != CertificateTrustScope.Append) 2030CertificateTrustScope = certificateTrustConfiguration?.Scope ?? CertificateTrustScope.None,
Aspire.Hosting.Tests (4)
ExecutionConfigurationGathererTests.cs (4)
228Assert.Equal(CertificateTrustScope.Append, metadata.Scope); 257Assert.Equal(CertificateTrustScope.System, metadata.Scope); 287Assert.Equal(CertificateTrustScope.Override, metadata.Scope); 315Assert.Equal(CertificateTrustScope.None, metadata.Scope);