8 instantiations of ReferenceRoleAssignmentAnnotation
Aspire.Hosting.Azure.Tests (7)
AzureResourcePreparerTests.cs (7)
554
agent.Resource.Annotations.Add(new
ReferenceRoleAssignmentAnnotation
(
579
agent.Resource.Annotations.Add(new
ReferenceRoleAssignmentAnnotation
(
604
agent.Resource.Annotations.Add(new
ReferenceRoleAssignmentAnnotation
(
633
agent1.Resource.Annotations.Add(new
ReferenceRoleAssignmentAnnotation
(storage.Resource, role));
636
agent2.Resource.Annotations.Add(new
ReferenceRoleAssignmentAnnotation
(storage.Resource, role));
667
agent.Resource.Annotations.Add(new
ReferenceRoleAssignmentAnnotation
(
710
agent.Resource.Annotations.Add(new
ReferenceRoleAssignmentAnnotation
(
Aspire.Hosting.Foundry (1)
HostedAgent\HostedAgentBuilderExtension.cs (1)
558
target.Annotations.Add(new
ReferenceRoleAssignmentAnnotation
(account, roles));
7 references to ReferenceRoleAssignmentAnnotation
Aspire.Hosting.Azure (2)
AzureResourcePreparer.cs (2)
275
if (!dependency.TryGetAnnotationsOfType<
ReferenceRoleAssignmentAnnotation
>(out var impliedRoleAssignments))
280
foreach (
var
impliedRoleAssignment in impliedRoleAssignments)
Aspire.Hosting.Foundry.Tests (5)
HostedAgentExtensionTests.cs (5)
736
var
annotation = Assert.Single(hostedAgent.Target.Annotations.OfType<
ReferenceRoleAssignmentAnnotation
>());
758
var
annotation = Assert.Single(hostedAgent.Target.Annotations.OfType<
ReferenceRoleAssignmentAnnotation
>());
796
.Select(a => Assert.Single(a.Target.Annotations.OfType<
ReferenceRoleAssignmentAnnotation
>()).Target)