29 references to Environment
Aspire.Hosting.Azure.AppService (29)
AzureAppServiceWebsiteContext.cs (29)
154var preserveHttp = environmentContext.Environment.PreserveHttpEndpoints; 206ep, [environmentContext.Environment], out var crossExpr)) 258epExpr, [environmentContext.Environment], out var crossExpr)) 370if (environmentContext.Environment.DeploymentSlotParameter is not null || environmentContext.Environment.DeploymentSlot is not null) 372deploymentSlotValue = environmentContext.Environment.DeploymentSlotParameter != null 373? environmentContext.Environment.DeploymentSlotParameter.AsProvisioningParameter(infra) 374: environmentContext.Environment.DeploymentSlot!; 443if (environmentContext.Environment.IsPublicNetworkAccessDisabled) 491if (environmentContext.Environment.IsPublicNetworkAccessDisabled) 683siteObj.SiteConfig.AppSettings.Add(new AppServiceNameValuePair { Name = "ASPIRE_ENVIRONMENT_NAME", Value = environmentContext.Environment.Name }); 687slot.SiteConfig.AppSettings.Add(new AppServiceNameValuePair { Name = "ASPIRE_ENVIRONMENT_NAME", Value = environmentContext.Environment.Name }); 713if (environmentContext.Environment.EnableDashboard) 735if (environmentContext.Environment.EnableApplicationInsights) 754_ = environmentContext.Environment.ContainerRegistryUrl.AsProvisioningParameter(infra); 755var appServicePlanParameter = environmentContext.Environment.PlanIdOutputReference.AsProvisioningParameter(infra); 756var acrMidParameter = environmentContext.Environment.ContainerRegistryManagedIdentityId.AsProvisioningParameter(infra); 757var acrClientIdParameter = environmentContext.Environment.ContainerRegistryClientId.AsProvisioningParameter(infra); 759var virtualNetworkSubnetId = environmentContext.Environment.GetDelegatedSubnetId(infra); 845_ = environmentContext.Environment.ContainerRegistryUrl.AsProvisioningParameter(infra); 846var appServicePlanParameter = environmentContext.Environment.PlanIdOutputReference.AsProvisioningParameter(infra); 847var acrMidParameter = environmentContext.Environment.ContainerRegistryManagedIdentityId.AsProvisioningParameter(infra); 848var acrClientIdParameter = environmentContext.Environment.ContainerRegistryClientId.AsProvisioningParameter(infra); 850var virtualNetworkSubnetId = environmentContext.Environment.GetDelegatedSubnetId(infra); 970var dashboardUri = environmentContext.Environment.DashboardUriReference.AsProvisioningParameter(Infra); 971var contributorId = environmentContext.Environment.WebsiteContributorManagedIdentityId.AsProvisioningParameter(Infra); 972var contributorPrincipalId = environmentContext.Environment.WebsiteContributorManagedIdentityPrincipalId.AsProvisioningParameter(Infra); 1032var appInsightsInstrumentationKey = environmentContext.Environment.AzureAppInsightsInstrumentationKeyReference.AsProvisioningParameter(Infra); 1033var appInsightsConnectionString = environmentContext.Environment.AzureAppInsightsConnectionStringReference.AsProvisioningParameter(Infra);