2 writes to Scope
Aspire.Hosting (2)
ApplicationModel\CertificateTrustExecutionConfigurationGatherer.cs (2)
44additionalData.Scope = CertificateTrustScope.Append; 54additionalData.Scope = caAnnotation.Scope.GetValueOrDefault(additionalData.Scope);
17 references to Scope
Aspire.Hosting (13)
ApplicationModel\CertificateTrustExecutionConfigurationGatherer.cs (8)
54additionalData.Scope = caAnnotation.Scope.GetValueOrDefault(additionalData.Scope); 57if (additionalData.Scope == CertificateTrustScope.None) 63if (additionalData.Scope == CertificateTrustScope.System) 86var configurationContext = _configContextFactory(additionalData.Scope); 91if (additionalData.Scope != CertificateTrustScope.Append) 100Scope = additionalData.Scope, 124if (additionalData.Scope == CertificateTrustScope.System) 126resourceLogger.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));
Ats\ExecutionConfigurationExports.cs (1)
93Scope = additionalData.Scope,
Dcp\ContainerCreator.cs (3)
734&& certificateTrustConfiguration.Scope != CertificateTrustScope.None 744if (certificateTrustConfiguration.Scope != CertificateTrustScope.Append) 766CertificateTrustScope = certificateTrustConfiguration?.Scope ?? CertificateTrustScope.None,
Dcp\ExecutableConfigurationResolver.cs (1)
88certificateTrustConfiguration.Scope != CertificateTrustScope.None &&
Aspire.Hosting.Tests (4)
ExecutionConfigurationGathererTests.cs (4)
300Assert.Equal(CertificateTrustScope.Append, metadata.Scope); 329Assert.Equal(CertificateTrustScope.System, metadata.Scope); 359Assert.Equal(CertificateTrustScope.Override, metadata.Scope); 387Assert.Equal(CertificateTrustScope.None, metadata.Scope);