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, 113if (additionalData.Scope == CertificateTrustScope.System) 115resourceLogger.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)
1648&& certificateTrustConfiguration.Scope != CertificateTrustScope.None 2016&& certificateTrustConfiguration.Scope != CertificateTrustScope.None 2033if (certificateTrustConfiguration.Scope != CertificateTrustScope.Append) 2047CertificateTrustScope = 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);