5 instantiations of RelationshipGraphNode
Aspire.Dashboard (1)
Components\Pages\ResourceOverview.razor.cs (1)
720
return 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)
36
Assert.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)
41
public required
RelationshipGraphNode
Resource { get; set; }
47
public required IReadOnlyList<
RelationshipGraphNode
> Incoming { get; set; }
53
public required IReadOnlyList<
RelationshipGraphNode
> Outgoing { get; set; }
91
private static List<NodeLayout> LayoutColumn(IReadOnlyList<
RelationshipGraphNode
> nodes, int x, int height)
96
foreach (
var
node in nodes)
118
private string GetLabel(
RelationshipGraphNode
resource)
138
private sealed record NodeLayout(
RelationshipGraphNode
Node, int X, int Y, bool IsCenter);
Components\Pages\ResourceOverview.razor.cs (2)
711
private List<
RelationshipGraphNode
> GetGraphNodes(IEnumerable<RelatedResource> relatedResources, bool incoming) =>
717
private
RelationshipGraphNode
GetGraphNode(ResourceViewModel resource, string type, bool isCenter)
Aspire.Dashboard.Components.Tests (1)
Controls\ResourceRelationshipGraphTests.cs (1)
27
IReadOnlyList<
RelationshipGraphNode
> outgoing = hasOutgoing