1 instantiation of AzureAppServiceEnvironmentResource
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceEnvironmentExtensions.cs (1)
44var resource = new AzureAppServiceEnvironmentResource(name, static infra =>
12 references to AzureAppServiceEnvironmentResource
Aspire.Hosting.Azure.AppService (7)
AzureAppServiceEnvironmentContext.cs (2)
13AzureAppServiceEnvironmentResource environment) 19public AzureAppServiceEnvironmentResource Environment => environment;
AzureAppServiceEnvironmentExtensions.cs (2)
40public static IResourceBuilder<AzureAppServiceEnvironmentResource> AddAzureAppServiceEnvironment(this IDistributedApplicationBuilder builder, string name) 44var resource = new AzureAppServiceEnvironmentResource(name, static infra =>
AzureAppServiceInfrastructure.cs (3)
24var appServiceEnvironments = appModel.Resources.OfType<AzureAppServiceEnvironmentResource>().ToArray(); 32foreach (var appServiceEnvironment in appServiceEnvironments) 66throw new InvalidOperationException($"Resource '{r.Name}' is configured to publish as an Azure AppService Website, but there are no '{nameof(AzureAppServiceEnvironmentResource)}' resources. Ensure you have added one by calling '{nameof(AzureAppServiceEnvironmentExtensions.AddAzureAppServiceEnvironment)}'.");
Aspire.Hosting.Azure.Tests (5)
AzureAppServiceTests.cs (4)
66var environment = Assert.Single(model.Resources.OfType<AzureAppServiceEnvironmentResource>()); 274var environment = Assert.Single(model.Resources.OfType<AzureAppServiceEnvironmentResource>());
AzureUserAssignedIdentityTests.cs (1)
212r => Assert.IsType<AzureAppServiceEnvironmentResource>(r),