9 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 (2)
HostedAgent\HostedAgentBuilderExtension.cs (1)
558
target.Annotations.Add(new
ReferenceRoleAssignmentAnnotation
(account, roles));
Toolbox\FoundryToolboxBuilderExtensions.cs (1)
62
toolbox.Annotations.Add(new
ReferenceRoleAssignmentAnnotation
(builder.Resource, roles));
9 references to ReferenceRoleAssignmentAnnotation
Aspire.Hosting.Azure (2)
AzureResourcePreparer.cs (2)
285
if (!dependency.TryGetAnnotationsOfType<
ReferenceRoleAssignmentAnnotation
>(out var impliedRoleAssignments))
290
foreach (
var
impliedRoleAssignment in impliedRoleAssignments)
Aspire.Hosting.Foundry.Tests (7)
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)
ToolboxTests.cs (2)
43
var
consumerRole = Assert.Single(
44
toolbox.Resource.Annotations.OfType<
ReferenceRoleAssignmentAnnotation
>());