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