2 writes to Scope
Aspire.Hosting (2)
ApplicationModel\CertificateTrustExecutionConfigurationGatherer.cs (2)
41additionalData.Scope = CertificateTrustScope.Append; 51additionalData.Scope = caAnnotation.Scope.GetValueOrDefault(additionalData.Scope);
16 references to Scope
Aspire.Hosting (12)
ApplicationModel\CertificateTrustExecutionConfigurationGatherer.cs (8)
51additionalData.Scope = caAnnotation.Scope.GetValueOrDefault(additionalData.Scope); 54if (additionalData.Scope == CertificateTrustScope.None) 60if (additionalData.Scope == CertificateTrustScope.System) 83var configurationContext = _configContextFactory(additionalData.Scope); 88if (additionalData.Scope != CertificateTrustScope.Append) 97Scope = additionalData.Scope, 121if (additionalData.Scope == CertificateTrustScope.System) 123resourceLogger.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)
1791&& certificateTrustConfiguration.Scope != CertificateTrustScope.None 2199&& certificateTrustConfiguration.Scope != CertificateTrustScope.None 2216if (certificateTrustConfiguration.Scope != CertificateTrustScope.Append) 2243CertificateTrustScope = certificateTrustConfiguration?.Scope ?? CertificateTrustScope.None,
Aspire.Hosting.Tests (4)
ExecutionConfigurationGathererTests.cs (4)
231Assert.Equal(CertificateTrustScope.Append, metadata.Scope); 260Assert.Equal(CertificateTrustScope.System, metadata.Scope); 290Assert.Equal(CertificateTrustScope.Override, metadata.Scope); 318Assert.Equal(CertificateTrustScope.None, metadata.Scope);