14 references to HasAnnotationOfType
Aspire.Hosting (4)
ApplicationModel\ResourceExtensions.cs (2)
120
if (
HasAnnotationOfType
<T>(resource))
138
return
HasAnnotationOfType
<T>(resource);
Publishing\Publisher.cs (2)
48
if (resource.
HasAnnotationOfType
<PublishingCallbackAnnotation>())
53
if (resource.
HasAnnotationOfType
<DeployingCallbackAnnotation>())
Aspire.Hosting.Azure (2)
AzureResourcePreparer.cs (2)
92
if (resource.
HasAnnotationOfType
<RoleAssignmentAnnotation>())
97
if (resource.
HasAnnotationOfType
<AppIdentityAnnotation>())
Aspire.Hosting.Azure.AppContainers (2)
AzureContainerAppsInfrastructure.cs (1)
65
if (r.
HasAnnotationOfType
<AzureContainerAppCustomizationAnnotation>())
ContainerAppContext.cs (1)
152
if (resource.
HasAnnotationOfType
<AzureFunctionsAnnotation>())
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceInfrastructure.cs (1)
64
if (r.
HasAnnotationOfType
<AzureAppServiceWebsiteCustomizationAnnotation>())
Aspire.Hosting.Docker (1)
DockerComposeInfrastructure.cs (1)
74
if (r.
HasAnnotationOfType
<DockerComposeServiceCustomizationAnnotation>())
Aspire.Hosting.Kubernetes (1)
KubernetesInfrastructure.cs (1)
58
if (r.
HasAnnotationOfType
<KubernetesServiceCustomizationAnnotation>())
Aspire.Hosting.Tests (3)
ResourceExtensionsTests.cs (3)
20
Assert.False(parent.Resource.
HasAnnotationOfType
<DummyAnnotation>());
32
Assert.False(parent.Resource.
HasAnnotationOfType
<DummyAnnotation>());
44
Assert.True(parent.Resource.
HasAnnotationOfType
<DummyAnnotation>());