Class BowireTopology
- Namespace
- Kuestenlogik.Bowire.Topology
- Assembly
- Kuestenlogik.Bowire.dll
#1049 — what is connected to what: the members of a cluster, the brokers
of a messaging system, the sidecars a host talks to. A plugin answers a
call (or streams frames) carrying one in a top-level topology
field, ToJson() writes that shape, and the workbench draws it
as a graph that follows each new frame. Every frame is the whole picture,
not a change to the last one.
public sealed record BowireTopology : IEquatable<BowireTopology>
- Inheritance
-
BowireTopology
- Implements
- Inherited Members
Constructors
BowireTopology(IReadOnlyList<BowireTopologyNode>, IReadOnlyList<BowireTopologyEdge>?)
#1049 — what is connected to what: the members of a cluster, the brokers
of a messaging system, the sidecars a host talks to. A plugin answers a
call (or streams frames) carrying one in a top-level topology
field, ToJson() writes that shape, and the workbench draws it
as a graph that follows each new frame. Every frame is the whole picture,
not a change to the last one.
public BowireTopology(IReadOnlyList<BowireTopologyNode> Nodes, IReadOnlyList<BowireTopologyEdge>? Edges = null)
Parameters
NodesIReadOnlyList<BowireTopologyNode>The nodes; each Id is unique.
EdgesIReadOnlyList<BowireTopologyEdge>The connections between them, if the plugin knows them.
Fields
FieldName
The field of a frame that holds the topology.
public const string FieldName = "topology"
Field Value
Properties
Edges
The connections between them, if the plugin knows them.
public IReadOnlyList<BowireTopologyEdge>? Edges { get; init; }
Property Value
Nodes
The nodes; each Id is unique.
public IReadOnlyList<BowireTopologyNode> Nodes { get; init; }
Property Value
Methods
Deconstruct(out IReadOnlyList<BowireTopologyNode>, out IReadOnlyList<BowireTopologyEdge>?)
public void Deconstruct(out IReadOnlyList<BowireTopologyNode> Nodes, out IReadOnlyList<BowireTopologyEdge>? Edges)
Parameters
NodesIReadOnlyList<BowireTopologyNode>EdgesIReadOnlyList<BowireTopologyEdge>
Equals(BowireTopology?)
public bool Equals(BowireTopology? other)
Parameters
otherBowireTopology
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToJson()
The topology as a frame: {"topology":{"nodes":[…],"edges":[…]}}.
public string ToJson()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(BowireTopology?, BowireTopology?)
public static bool operator ==(BowireTopology? left, BowireTopology? right)
Parameters
leftBowireTopologyrightBowireTopology
Returns
operator !=(BowireTopology?, BowireTopology?)
public static bool operator !=(BowireTopology? left, BowireTopology? right)
Parameters
leftBowireTopologyrightBowireTopology