29 references to Environment
Aspire.Hosting.Azure.AppService (29)
AzureAppServiceWebsiteContext.cs (29)
156var preserveHttp = environmentContext.Environment.PreserveHttpEndpoints; 208ep, [environmentContext.Environment], out var crossExpr)) 260epExpr, [environmentContext.Environment], out var crossExpr)) 372if (environmentContext.Environment.DeploymentSlotParameter is not null || environmentContext.Environment.DeploymentSlot is not null) 374deploymentSlotValue = environmentContext.Environment.DeploymentSlotParameter != null 375? environmentContext.Environment.DeploymentSlotParameter.AsProvisioningParameter(infra) 376: environmentContext.Environment.DeploymentSlot!; 445if (environmentContext.Environment.IsPublicNetworkAccessDisabled) 493if (environmentContext.Environment.IsPublicNetworkAccessDisabled) 685siteObj.SiteConfig.AppSettings.Add(new AppServiceNameValuePair { Name = "ASPIRE_ENVIRONMENT_NAME", Value = environmentContext.Environment.Name }); 689slot.SiteConfig.AppSettings.Add(new AppServiceNameValuePair { Name = "ASPIRE_ENVIRONMENT_NAME", Value = environmentContext.Environment.Name }); 715if (environmentContext.Environment.EnableDashboard) 737if (environmentContext.Environment.EnableApplicationInsights) 756_ = environmentContext.Environment.ContainerRegistryUrl.AsProvisioningParameter(infra); 757var appServicePlanParameter = environmentContext.Environment.PlanIdOutputReference.AsProvisioningParameter(infra); 758var acrMidParameter = environmentContext.Environment.ContainerRegistryManagedIdentityId.AsProvisioningParameter(infra); 759var acrClientIdParameter = environmentContext.Environment.ContainerRegistryClientId.AsProvisioningParameter(infra); 761var virtualNetworkSubnetId = environmentContext.Environment.GetDelegatedSubnetId(infra); 847_ = environmentContext.Environment.ContainerRegistryUrl.AsProvisioningParameter(infra); 848var appServicePlanParameter = environmentContext.Environment.PlanIdOutputReference.AsProvisioningParameter(infra); 849var acrMidParameter = environmentContext.Environment.ContainerRegistryManagedIdentityId.AsProvisioningParameter(infra); 850var acrClientIdParameter = environmentContext.Environment.ContainerRegistryClientId.AsProvisioningParameter(infra); 852var virtualNetworkSubnetId = environmentContext.Environment.GetDelegatedSubnetId(infra); 972var dashboardUri = environmentContext.Environment.DashboardUriReference.AsProvisioningParameter(Infra); 973var contributorId = environmentContext.Environment.WebsiteContributorManagedIdentityId.AsProvisioningParameter(Infra); 974var contributorPrincipalId = environmentContext.Environment.WebsiteContributorManagedIdentityPrincipalId.AsProvisioningParameter(Infra); 1034var appInsightsInstrumentationKey = environmentContext.Environment.AzureAppInsightsInstrumentationKeyReference.AsProvisioningParameter(Infra); 1035var appInsightsConnectionString = environmentContext.Environment.AzureAppInsightsConnectionStringReference.AsProvisioningParameter(Infra);