15 instantiations of TenantScopedResourceAnnotation
Aspire.Hosting.Azure.EntraId (1)
EntraIdApplicationResource.cs (1)
51
Annotations.Add(new
TenantScopedResourceAnnotation
(new Dictionary<string, string>
Aspire.Hosting.Azure.Tests (14)
AzureEnvironmentResourceExtensionsTests.cs (10)
34
var annotation = new
TenantScopedResourceAnnotation
(outputs);
38
Assert.Throws<ArgumentNullException>(() => new
TenantScopedResourceAnnotation
(null!));
39
Assert.Throws<ArgumentException>(() => new
TenantScopedResourceAnnotation
(
41
Assert.Throws<ArgumentException>(() => new
TenantScopedResourceAnnotation
(
60
.WithAnnotation(new
TenantScopedResourceAnnotation
(new Dictionary<string, string>
66
.WithAnnotation(new
TenantScopedResourceAnnotation
(new Dictionary<string, string>
150
directory.WithAnnotation(new
TenantScopedResourceAnnotation
(new Dictionary<string, string>
227
directory.WithAnnotation(new
TenantScopedResourceAnnotation
(new Dictionary<string, string>()));
258
registration.WithAnnotation(new
TenantScopedResourceAnnotation
(new Dictionary<string, string>()));
296
.WithAnnotation(new
TenantScopedResourceAnnotation
(new Dictionary<string, string>()));
ProvisioningContextProviderTests.cs (4)
32
resource.Annotations.Add(new
TenantScopedResourceAnnotation
(new Dictionary<string, string>()));
71
resource.Annotations.Add(new
TenantScopedResourceAnnotation
(new Dictionary<string, string>()));
93
resource.Annotations.Add(new
TenantScopedResourceAnnotation
(new Dictionary<string, string>()));
138
resource.Annotations.Add(new
TenantScopedResourceAnnotation
(new Dictionary<string, string>()));
12 references to TenantScopedResourceAnnotation
Aspire.Hosting.Azure (9)
AzureProvisioningController.cs (7)
963
if (resources.Any(resource => resource.AzureResource.HasAnnotationOfType<
TenantScopedResourceAnnotation
>()))
977
.Any(resource => resource.AzureResource.HasAnnotationOfType<
TenantScopedResourceAnnotation
>()))
1887
azureResources.Where(resource => !resource.AzureResource.HasAnnotationOfType<
TenantScopedResourceAnnotation
>()).ToArray(),
1920
!bicepResource.TryGetLastAnnotation<
TenantScopedResourceAnnotation
>(out
var
annotation))
2278
if (resource.AzureResource.HasAnnotationOfType<
TenantScopedResourceAnnotation
>() ||
3663
if (resource.HasAnnotationOfType<
TenantScopedResourceAnnotation
>())
AzureResourcePreparer.cs (2)
89
if (bicepResource.HasAnnotationOfType<
TenantScopedResourceAnnotation
>() &&
124
resource.AzureResource.HasAnnotationOfType<
TenantScopedResourceAnnotation
>());
Aspire.Hosting.Azure.EntraId.Tests (2)
EntraIdProvisioningTests.cs (2)
34
var
tenantScoped = Assert.Single(entra.Resource.Annotations.OfType<
TenantScopedResourceAnnotation
>());
Aspire.Hosting.Azure.Tests (1)
AzureEnvironmentResourceExtensionsTests.cs (1)
34
var
annotation = new TenantScopedResourceAnnotation(outputs);