5 instantiations of RelationshipGraphNode
Aspire.Dashboard (1)
Components\Pages\ResourceOverview.razor.cs (1)
720return new RelationshipGraphNode(name, type, isCenter ? null : DashboardUrls.ResourceOverviewUrl(name),
Aspire.Dashboard.Components.Tests (4)
Controls\ResourceRelationshipGraphTests.cs (3)
28? [new("catalogdb", "Reference", "/resources/catalogdb", IsReplica: false)] 31.Add(p => p.Resource, new(resourceName, "Project", Url: null, IsReplica: isReplica)) 32.Add(p => p.Incoming, [new("frontend", "Reference", "/resources/frontend", IsReplica: false)])
Pages\ResourceOverviewTypeDisplayNameTests.cs (1)
36Assert.Equal(new RelationshipGraphNode("postgres", "PostgreSQL Server", Url: null, IsReplica: false), graph.Resource);
10 references to RelationshipGraphNode
Aspire.Dashboard (9)
Components\Controls\ResourceRelationshipGraph.razor.cs (7)
41public required RelationshipGraphNode Resource { get; set; } 47public required IReadOnlyList<RelationshipGraphNode> Incoming { get; set; } 53public required IReadOnlyList<RelationshipGraphNode> Outgoing { get; set; } 91private static List<NodeLayout> LayoutColumn(IReadOnlyList<RelationshipGraphNode> nodes, int x, int height) 96foreach (var node in nodes) 118private string GetLabel(RelationshipGraphNode resource) 138private sealed record NodeLayout(RelationshipGraphNode Node, int X, int Y, bool IsCenter);
Components\Pages\ResourceOverview.razor.cs (2)
711private List<RelationshipGraphNode> GetGraphNodes(IEnumerable<RelatedResource> relatedResources, bool incoming) => 717private RelationshipGraphNode GetGraphNode(ResourceViewModel resource, string type, bool isCenter)
Aspire.Dashboard.Components.Tests (1)
Controls\ResourceRelationshipGraphTests.cs (1)
27IReadOnlyList<RelationshipGraphNode> outgoing = hasOutgoing