14 references to WithServiceDelegation
Aspire.Hosting.Azure.Kubernetes (1)
AzureKubernetesEnvironmentExtensions.cs (1)
454subnet.WithServiceDelegation(AzureSubnetServiceDelegations.ApplicationGatewayForContainers);
Aspire.Hosting.Azure.Kubernetes.Tests (2)
AzureKubernetesEnvironmentExtensionsTests.cs (2)
533.WithServiceDelegation("Microsoft.Netapp/volumes"); 575.WithServiceDelegation("microsoft.servicenetworking/trafficcontrollers");
Aspire.Hosting.Azure.Network (1)
AzureVirtualNetworkExtensions.cs (1)
349subnet.WithServiceDelegation(target.DelegatedSubnetServiceName);
Aspire.Hosting.Azure.Sql (1)
AzureSqlServerResource.cs (1)
724.WithServiceDelegation(AzureSubnetServiceDelegations.ContainerInstances);
Aspire.Hosting.Azure.Tests (9)
AzureSqlDeploymentScriptTests.cs (1)
187.WithServiceDelegation("Microsoft.Netapp/volumes");
AzureVirtualNetworkExtensionsTests.cs (8)
169.WithServiceDelegation("Microsoft.App/environments"); 184.WithServiceDelegation("Microsoft.App/environments", name: "ContainerAppsDelegation"); 199.WithServiceDelegation(AzureSubnetServiceDelegations.ContainerInstances); 223.WithServiceDelegation("Microsoft.Sql/managedInstances") 224.WithServiceDelegation("Microsoft.Web/serverFarms", name: "WebDelegation"); 243subnet.WithServiceDelegation("Microsoft.App/environments"); 258Assert.Throws<ArgumentException>(() => subnet.WithServiceDelegation("Microsoft.App/environments", name: "")); 269Assert.Throws<ArgumentException>(() => subnet.WithServiceDelegation(""));