9 instantiations of ReferenceRoleAssignmentAnnotation
Aspire.Hosting.Azure.Tests (7)
AzureResourcePreparerTests.cs (7)
660
agent.Resource.Annotations.Add(new
ReferenceRoleAssignmentAnnotation
(
685
agent.Resource.Annotations.Add(new
ReferenceRoleAssignmentAnnotation
(
710
agent.Resource.Annotations.Add(new
ReferenceRoleAssignmentAnnotation
(
739
agent1.Resource.Annotations.Add(new
ReferenceRoleAssignmentAnnotation
(storage.Resource, role));
742
agent2.Resource.Annotations.Add(new
ReferenceRoleAssignmentAnnotation
(storage.Resource, role));
773
agent.Resource.Annotations.Add(new
ReferenceRoleAssignmentAnnotation
(
816
agent.Resource.Annotations.Add(new
ReferenceRoleAssignmentAnnotation
(
Aspire.Hosting.Foundry (2)
HostedAgent\HostedAgentBuilderExtension.cs (1)
562
target.Annotations.Add(new
ReferenceRoleAssignmentAnnotation
(account, roles));
Toolbox\FoundryToolboxBuilderExtensions.cs (1)
64
toolbox.Annotations.Add(new
ReferenceRoleAssignmentAnnotation
(builder.Resource, roles));
9 references to ReferenceRoleAssignmentAnnotation
Aspire.Hosting.Azure (2)
AzureResourcePreparer.cs (2)
328
if (!dependency.TryGetAnnotationsOfType<
ReferenceRoleAssignmentAnnotation
>(out var impliedRoleAssignments))
333
foreach (
var
impliedRoleAssignment in impliedRoleAssignments)
Aspire.Hosting.Foundry.Tests (7)
HostedAgentExtensionTests.cs (5)
959
var
annotation = Assert.Single(hostedAgent.Target.Annotations.OfType<
ReferenceRoleAssignmentAnnotation
>());
981
var
annotation = Assert.Single(hostedAgent.Target.Annotations.OfType<
ReferenceRoleAssignmentAnnotation
>());
1019
.Select(a => Assert.Single(a.Target.Annotations.OfType<
ReferenceRoleAssignmentAnnotation
>()).Target)
ToolboxTests.cs (2)
41
var
consumerRole = Assert.Single(
42
toolbox.Resource.Annotations.OfType<
ReferenceRoleAssignmentAnnotation
>());