2 writes to Scope
Aspire.Hosting (2)
ApplicationModel\CertificateTrustExecutionConfigurationGatherer.cs (2)
39additionalData.Scope = CertificateTrustScope.Append; 49additionalData.Scope = caAnnotation.Scope.GetValueOrDefault(additionalData.Scope);
16 references to Scope
Aspire.Hosting (12)
ApplicationModel\CertificateTrustExecutionConfigurationGatherer.cs (8)
49additionalData.Scope = caAnnotation.Scope.GetValueOrDefault(additionalData.Scope); 52if (additionalData.Scope == CertificateTrustScope.None) 58if (additionalData.Scope == CertificateTrustScope.System) 81var configurationContext = _configContextFactory(additionalData.Scope); 86if (additionalData.Scope != CertificateTrustScope.Append) 95Scope = additionalData.Scope, 111if (additionalData.Scope == CertificateTrustScope.System) 113resourceLogger.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)
1635&& certificateTrustConfiguration.Scope != CertificateTrustScope.None 1977&& certificateTrustConfiguration.Scope != CertificateTrustScope.None 1994if (certificateTrustConfiguration.Scope != CertificateTrustScope.Append) 2008CertificateTrustScope = certificateTrustConfiguration?.Scope ?? CertificateTrustScope.None,
Aspire.Hosting.Tests (4)
ResourceExecutionConfigurationGathererTests.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);