18 references to HasAnnotationOfType
Aspire.Hosting (4)
ApplicationModel\ResourceExtensions.cs (2)
120if (HasAnnotationOfType<T>(resource)) 138return HasAnnotationOfType<T>(resource);
Publishing\Publisher.cs (2)
87if (resource.HasAnnotationOfType<DeployingCallbackAnnotation>()) 94if (resource.HasAnnotationOfType<PublishingCallbackAnnotation>())
Aspire.Hosting.Azure (2)
AzureResourcePreparer.cs (2)
91if (resource.HasAnnotationOfType<RoleAssignmentAnnotation>()) 96if (resource.HasAnnotationOfType<AppIdentityAnnotation>())
Aspire.Hosting.Azure.AppContainers (6)
AzureContainerAppsInfrastructure.cs (2)
61if (r.HasAnnotationOfType<AzureContainerAppCustomizationAnnotation>() || 63r.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 (1)
AzureAppServiceInfrastructure.cs (1)
66if (r.HasAnnotationOfType<AzureAppServiceWebsiteCustomizationAnnotation>())
Aspire.Hosting.Docker (1)
DockerComposeInfrastructure.cs (1)
75if (r.HasAnnotationOfType<DockerComposeServiceCustomizationAnnotation>())
Aspire.Hosting.Kubernetes (1)
KubernetesInfrastructure.cs (1)
59if (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>());