2 instantiations of AppIdentityAnnotation
Aspire.Hosting.Azure (2)
AzureResourcePreparer.cs (1)
198resource.Annotations.Add(new AppIdentityAnnotation(identityResource));
AzureUserAssignedIdentityExtensions.cs (1)
69builder.WithAnnotation(new AppIdentityAnnotation(identityResourceBuilder.Resource));
23 references to AppIdentityAnnotation
Aspire.Hosting.Azure (5)
AzureResourcePreparer.cs (5)
97if (resource.HasAnnotationOfType<AppIdentityAnnotation>()) 195if (!resource.TryGetLastAnnotation<AppIdentityAnnotation>(out var existingAppIdentityAnnotation) || 272else if (resource.TryGetLastAnnotation<AppIdentityAnnotation>(out var appIdentityAnnotation) &&
Aspire.Hosting.Azure.AppContainers (2)
ContainerAppContext.cs (2)
66if (resource.TryGetLastAnnotation<AppIdentityAnnotation>(out var appIdentityAnnotation))
Aspire.Hosting.Azure.AppService (2)
AzureAppServiceWebsiteContext.cs (2)
288if (resource.TryGetLastAnnotation<AppIdentityAnnotation>(out var appIdentityAnnotation))
Aspire.Hosting.Azure.Tests (10)
AzureUserAssignedIdentityTests.cs (10)
123var identityAnnotation = Assert.Single(computeResource.Annotations.OfType<AppIdentityAnnotation>()); 169var identityAnnotation = Assert.Single(computeResource.Annotations.OfType<AppIdentityAnnotation>()); 224var identityAnnotation = Assert.Single(computeResource.Annotations.OfType<AppIdentityAnnotation>()); 302var identityAnnotation = Assert.Single(computeResource.Annotations.OfType<AppIdentityAnnotation>()); 304var identityAnnotation2 = Assert.Single(computeResource2.Annotations.OfType<AppIdentityAnnotation>());
AzureAppService.AppHost (2)
Program.cs (2)
39if (context.Resource.TryGetLastAnnotation<AppIdentityAnnotation>(out var identity))
AzureContainerApps.AppHost (2)
Program.cs (2)
50if (context.Resource.TryGetLastAnnotation<AppIdentityAnnotation>(out var identity))