22 references to HasAnnotationOfType
Aspire.Hosting (2)
ApplicationModel\ResourceExtensions.cs (2)
123if (HasAnnotationOfType<T>(resource)) 141return HasAnnotationOfType<T>(resource);
Aspire.Hosting.Azure (2)
AzureResourcePreparer.cs (2)
91if (resource.HasAnnotationOfType<RoleAssignmentAnnotation>()) 96if (resource.HasAnnotationOfType<AppIdentityAnnotation>())
Aspire.Hosting.Azure.AppContainers (7)
AzureContainerAppsInfrastructure.cs (3)
34if (environment.HasAnnotationOfType<ContainerRegistryReferenceAnnotation>() && 66if (r.HasAnnotationOfType<AzureContainerAppCustomizationAnnotation>() || 68r.HasAnnotationOfType<AzureContainerAppJobCustomizationAnnotation>())
ContainerAppContext.cs (1)
126if (Resource.HasAnnotationOfType<AzureFunctionsAnnotation>())
ContainerAppEnvironmentContext.cs (2)
56bool hasJobCustomization = resource.HasAnnotationOfType<AzureContainerAppJobCustomizationAnnotation>(); 57bool hasAppCustomization = resource.HasAnnotationOfType<AzureContainerAppCustomizationAnnotation>();
ContainerAppJobContext.cs (1)
102if (Resource.HasAnnotationOfType<AzureFunctionsAnnotation>())
Aspire.Hosting.Azure.AppService (5)
AzureAppServiceComputeResourceExtensions.cs (2)
87if (!builder.Resource.HasAnnotationOfType<AzureAppServiceWebsiteCustomizationAnnotation>() && 88!builder.Resource.HasAnnotationOfType<AzureAppServiceWebsiteSlotCustomizationAnnotation>())
AzureAppServiceEnvironmentResource.cs (1)
214if (resource.HasAnnotationOfType<AzureAppServiceIgnoreEnvironmentVariableChecksAnnotation>())
AzureAppServiceInfrastructure.cs (2)
36if (appServiceEnvironment.HasAnnotationOfType<ContainerRegistryReferenceAnnotation>() && 74if (r.HasAnnotationOfType<AzureAppServiceWebsiteCustomizationAnnotation>())
Aspire.Hosting.Docker (1)
DockerComposeInfrastructure.cs (1)
97if (r.HasAnnotationOfType<DockerComposeServiceCustomizationAnnotation>())
Aspire.Hosting.Kubernetes (1)
KubernetesInfrastructure.cs (1)
57if (r.HasAnnotationOfType<KubernetesServiceCustomizationAnnotation>())
Aspire.Hosting.Tests (3)
ResourceExtensionsTests.cs (3)
20Assert.False(parent.Resource.HasAnnotationOfType<DummyAnnotation>()); 32Assert.False(parent.Resource.HasAnnotationOfType<DummyAnnotation>()); 44Assert.True(parent.Resource.HasAnnotationOfType<DummyAnnotation>());
Aspire.Hosting.Yarp (1)
YarpResourceExtensions.cs (1)
234if (builder.Resource.HasAnnotationOfType<DockerfileBuilderCallbackAnnotation>())