14 references to HasAnnotationOfType
Aspire.Hosting (4)
ApplicationModel\ResourceExtensions.cs (2)
120if (HasAnnotationOfType<T>(resource)) 138return HasAnnotationOfType<T>(resource);
Publishing\Publisher.cs (2)
48if (resource.HasAnnotationOfType<PublishingCallbackAnnotation>()) 53if (resource.HasAnnotationOfType<DeployingCallbackAnnotation>())
Aspire.Hosting.Azure (2)
AzureResourcePreparer.cs (2)
92if (resource.HasAnnotationOfType<RoleAssignmentAnnotation>()) 97if (resource.HasAnnotationOfType<AppIdentityAnnotation>())
Aspire.Hosting.Azure.AppContainers (2)
AzureContainerAppsInfrastructure.cs (1)
65if (r.HasAnnotationOfType<AzureContainerAppCustomizationAnnotation>())
ContainerAppContext.cs (1)
152if (resource.HasAnnotationOfType<AzureFunctionsAnnotation>())
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceInfrastructure.cs (1)
64if (r.HasAnnotationOfType<AzureAppServiceWebsiteCustomizationAnnotation>())
Aspire.Hosting.Docker (1)
DockerComposeInfrastructure.cs (1)
74if (r.HasAnnotationOfType<DockerComposeServiceCustomizationAnnotation>())
Aspire.Hosting.Kubernetes (1)
KubernetesInfrastructure.cs (1)
58if (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>());