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

Nodes IReadOnlyList<BowireTopologyNode>

The nodes; each Id is unique.

Edges IReadOnlyList<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

string

Properties

Edges

The connections between them, if the plugin knows them.

public IReadOnlyList<BowireTopologyEdge>? Edges { get; init; }

Property Value

IReadOnlyList<BowireTopologyEdge>

Nodes

The nodes; each Id is unique.

public IReadOnlyList<BowireTopologyNode> Nodes { get; init; }

Property Value

IReadOnlyList<BowireTopologyNode>

Methods

Deconstruct(out IReadOnlyList<BowireTopologyNode>, out IReadOnlyList<BowireTopologyEdge>?)

public void Deconstruct(out IReadOnlyList<BowireTopologyNode> Nodes, out IReadOnlyList<BowireTopologyEdge>? Edges)

Parameters

Nodes IReadOnlyList<BowireTopologyNode>
Edges IReadOnlyList<BowireTopologyEdge>

Equals(BowireTopology?)

public bool Equals(BowireTopology? other)

Parameters

other BowireTopology

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToJson()

The topology as a frame: {"topology":{"nodes":[…],"edges":[…]}}.

public string ToJson()

Returns

string

ToString()

public override string ToString()

Returns

string

Operators

operator ==(BowireTopology?, BowireTopology?)

public static bool operator ==(BowireTopology? left, BowireTopology? right)

Parameters

left BowireTopology
right BowireTopology

Returns

bool

operator !=(BowireTopology?, BowireTopology?)

public static bool operator !=(BowireTopology? left, BowireTopology? right)

Parameters

left BowireTopology
right BowireTopology

Returns

bool