1 instantiation of AppliedRoleAssignmentsAnnotation
Aspire.Hosting.Azure (1)
AzureResourcePreparer.cs (1)
259resource.Annotations.Add(new AppliedRoleAssignmentsAnnotation([..newRoles]));
12 references to AppliedRoleAssignmentsAnnotation
Aspire.Hosting.Azure (4)
AppliedRoleAssignmentsAnnotation.cs (2)
15/// <see cref="AppliedRoleAssignmentsAnnotation"/> are used when the entire application utilizes a single managed identity. 20/// <see cref="AppliedRoleAssignmentsAnnotation"/> are not used.
AzureResourcePreparer.cs (2)
253if (resource.TryGetLastAnnotation<AppliedRoleAssignmentsAnnotation>(out var appliedRoleAssignments))
Aspire.Hosting.Azure.Storage (2)
AzureStorageExtensions.cs (2)
81if (infrastructure.AspireResource.TryGetLastAnnotation<AppliedRoleAssignmentsAnnotation>(out var appliedRoleAssignments))
Aspire.Hosting.Azure.Tests (6)
AzureResourcePreparerTests.cs (6)
60Assert.True(storage.Resource.TryGetLastAnnotation<AppliedRoleAssignmentsAnnotation>(out var appliedAssignments)); 68Assert.False(storage.Resource.HasAnnotationOfType<AppliedRoleAssignmentsAnnotation>()); 103Assert.True(storage.Resource.TryGetLastAnnotation<AppliedRoleAssignmentsAnnotation>(out var appliedAssignments)); 113Assert.False(storage.Resource.HasAnnotationOfType<AppliedRoleAssignmentsAnnotation>());