API reference — Operations

Nuvora.Nexus.Relay.Management

Management control plane for Nuvora Nexus Relay: ingests node registrations/heartbeats/snapshots, evaluates alerts, pushes live updates over SignalR, and serves the dashboard query API.

dotnet add package Nuvora.Nexus.Relay.Management

Nuvora.Nexus.Relay.Management

ManagementServerOptions

public sealed class ManagementServerOptions

Configures the management control plane.

Properties

List<string> AllowedCorsOrigins { get; set; }

CORS origins allowed to call the API/hub (e.g. the Vite dev server). Credentials are only permitted when this lists explicit origins — a wildcard ("*") or empty list disables cross-origin credentialed access rather than combining an open origin list with AllowCredentials.

int ActivityLogLength { get; set; }

Max activity-timeline entries retained in memory.

int AlertHistoryLength { get; set; }

Max resolved alerts retained in history.

int DownAfterSeconds { get; set; }

A node with no heartbeat within this window is “down” (red dot) and raises an alert.

int HeartbeatIntervalSeconds { get; set; }

Heartbeat cadence the server hands back to agents on registration (seconds).

int HistoryLength { get; set; }

How many historical metric samples to retain per node (drives sparklines).

int RetireNodeAfterSeconds { get; set; }

A node with no heartbeat within this window is retired (removed from the registry).

int SnapshotIntervalSeconds { get; set; }

Snapshot cadence the server hands back to agents on registration (seconds).

int StaleAfterSeconds { get; set; }

A node with no heartbeat within this window is “stale” (amber dot).

string ApiKeyHeader { get; set; }

Request header carrying ManagementServerOptions.ApiKey. Defaults to X-Relay-Management-Key.

string? AgentApiKey { get; set; }

Optional shared secret the control plane forwards to node agents when proxying actions/events (in the agent’s ManagementAuth.DefaultApiKeyHeader header). Set this to the value each node configures as its ManagementAgentOptions.ApiKey so the action proxy can reach agents that require a key. Leave null when nodes run observe-only or without an API key.

string? ApiKey { get; set; }

Optional shared-secret API key required on the destructive control-plane endpoints. When set, those requests must present the key in the ManagementServerOptions.ApiKeyHeader header; it is compared constant-time (see ManagementAuth.MatchesApiKey). With neither this nor ManagementServerOptions.AuthorizationPolicy configured, destructive endpoints fail closed with 403.

string? AuthorizationPolicy { get; set; }

Optional ASP.NET Core authorization policy name applied to the destructive control-plane endpoints (DLQ replay/discard, alert-rule delete, action proxy) via RequireAuthorization. When set, callers must satisfy this policy. May be combined with ManagementServerOptions.ApiKey; either configured counts as “authenticated”.

Nuvora.Nexus.Relay.Management.DependencyInjection

ManagementServerServiceCollectionExtensions

public static class ManagementServerServiceCollectionExtensions

Registration + mapping helpers for the management control plane.

Methods

static IEndpointRouteBuilder MapRelayManagement(this IEndpointRouteBuilder endpoints, string hubPath = "/hubs/relay")

Maps the ingest API (/mgmt/*), the dashboard API (/api/*), and the SignalR hub (default /hubs/relay). Call app.UseCors(CorsPolicy) before this so the API and hub accept the dashboard origin.

static IServiceCollection AddRelayManagementServer(this IServiceCollection services, Action<ManagementServerOptions>? configure = null)

Registers the control plane: the in-memory registry, alert engine, activity log, SignalR push, action proxy, the node reaper, a CORS policy for the dashboard, and JSON settings matching the agent’s wire format. Map the endpoints with MapRelayManagement().

Fields

const string CorsPolicy = "relay-dashboard"

The CORS policy name applied to the API and SignalR hub.

Nuvora.Nexus.Relay.Management.Endpoints

ManagementApiEndpoints

public static class ManagementApiEndpoints

The dashboard-facing read/query API plus alert mutations and the action proxy.

Methods

static IEndpointRouteBuilder MapRelayManagementApi(this IEndpointRouteBuilder endpoints)

ManagementIngestEndpoints

public static class ManagementIngestEndpoints

The agent-facing ingest API: registration, heartbeats, and snapshots.

Methods

static IEndpointRouteBuilder MapRelayManagementIngest(this IEndpointRouteBuilder endpoints)

Nuvora.Nexus.Relay.Management.Hubs

RelayWatchHub

public sealed class RelayWatchHub : Hub

SignalR hub the dashboard connects to for live updates. Push-only from the server: the client subscribes and receives nodeUpdated, alert, activity and servicesChanged messages; it never invokes server methods.

Nuvora.Nexus.Relay.Management.Internals

ActionProxy

public sealed class ActionProxy

Forwards operator actions from the dashboard to the target node’s agent control endpoint.

Constructors

ActionProxy(IHttpClientFactory httpClientFactory, NodeRegistry registry, IOptions<ManagementServerOptions> options, ILogger<ActionProxy> logger)

Methods

Task<ActionResult> SendToNodeAsync(string nodeKey, ActionRequest request, CancellationToken ct)

Sends an action to a specific node. Resolves its control URL and posts to the agent.

Task<ActionResult> SendToServiceAsync(string serviceName, ActionRequest request, CancellationToken ct)

Sends an action to a service by picking a live node with a control channel.

Task<EventStorePage?> GetEventsAsync(string serviceName, long fromPosition, int maxCount, string? aggregateType, string? eventType, CancellationToken ct)

Reads a page of events from a service’s event store (via any controllable node’s agent).

Fields

const string HttpClientName = "relay-agent-control"

ActivityLog

public sealed class ActivityLog

A bounded, in-memory chronological feed of notable control-plane events (the audit timeline).

Constructors

ActivityLog(IOptions<ManagementServerOptions> options)

Methods

ActivityEvent Record(string category, string summary, AlertSeverity severity = Info, string? serviceName = null, string? nodeKey = null, string? detail = null)
IReadOnlyList<ActivityEvent> Get(string? serviceName = null, int max = 200)

AlertEngine

public sealed class AlertEngine

Evaluates threshold rules against each node’s KPIs, maintaining a set of active alerts (keyed by rule + node) and a bounded history of resolved ones. Supports acknowledge / snooze / resolve.

Constructors

AlertEngine(IOptions<ManagementServerOptions> options)

Properties

IReadOnlyList<AlertRule> Rules { get; }

Methods

AlertRule Upsert(AlertRule rule)

Adds or replaces a rule (by id). Returns the stored rule.

AlertState? Acknowledge(string id)
AlertState? RaiseNodeDown(string serviceName, string nodeKey, string nodeId)

Raises (idempotently) a node-down alert. Returns the alert when newly raised, else null.

AlertState? Resolve(string id)
AlertState? ResolveNodeDown(string nodeKey)

Resolves a node-down alert if present. Returns the resolved alert, else null.

AlertState? Snooze(string id, TimeSpan duration)
IReadOnlyList<AlertState> EvaluateNode(NodeView node)

Evaluates a node’s KPIs against all rules, returning alerts that were raised or resolved.

IReadOnlyList<AlertState> GetActive()
IReadOnlyList<AlertState> GetHistory()
bool DeleteRule(string id)

Deletes a rule by id. Returns whether it existed.

DashboardNotifier

public sealed class DashboardNotifier

Typed wrapper over the SignalR hub context for pushing live updates to connected dashboards.

Constructors

DashboardNotifier(IHubContext<RelayWatchHub> hub, ILogger<DashboardNotifier> logger)

Methods

Task Activity(ActivityEvent activity)
Task Alert(AlertState alert)
Task NodeUpdated(NodeView node)
Task ServicesChanged()

NodeReaper

public sealed class NodeReaper : BackgroundService

Periodically re-projects node liveness so dots go stale/down without new traffic, raises a node-down alert the first time a node crosses the threshold, and nudges dashboards to refresh.

Constructors

NodeReaper(NodeRegistry registry, AlertEngine alerts, ActivityLog activity, DashboardNotifier notifier, IOptions<ManagementServerOptions> options, ILogger<NodeReaper> logger)

Methods

override Task ExecuteAsync(CancellationToken stoppingToken)

This method is called when the IHostedService starts. The implementation should return a task that represents the lifetime of the long running operation(s) being performed.

NodeRegistry

public sealed class NodeRegistry

In-memory store of every known node: its registration, last heartbeat, latest snapshot, and a ring buffer of derived metric samples. The durable truth lives in each service’s database — this registry is a live aggregator the dashboard reads. Thread-safe behind a single lock (writes are infrequent and cheap relative to the snapshot cadence).

Constructors

NodeRegistry(IOptions<ManagementServerOptions> options)

Methods

IReadOnlyList<NodeView> GetNodes()
IReadOnlyList<NodeView> PruneStaleNodes(TimeSpan retireAfter)

Removes nodes that have been Down longer than retireAfter. Returns the removed node views.

IReadOnlyList<ServiceView> GetServices()
NodeView? GetNode(string nodeKey)
NodeView? IngestSnapshot(RelaySnapshot snapshot)

Ingests a snapshot, deriving a metric sample from the previous one, and returns the node view.

RegistrationResponse Register(NodeRegistration registration)

Registers (or re-registers) a node and returns its key + reporting cadence.

ServiceView? GetService(string serviceName)
bool Heartbeat(Heartbeat heartbeat)

Records a heartbeat. Returns whether the node’s liveness status changed.

string? ResolveActionNodeKey(string serviceName)

Resolves a target node for a service-scoped action: prefers a live node with a control channel.

string? TryGetControlUrl(string nodeKey)

Returns the control-callback base URL for a node, or null if it has none.

Nuvora.Nexus.Relay.Management.Models

ActivityEvent

public sealed record ActivityEvent : IEquatable<ActivityEvent>

An entry in the activity timeline / audit feed.

Properties

AlertSeverity Severity { get; init; }
DateTimeOffset Timestamp { get; init; }
required string Category { get; init; }
required string Id { get; init; }
required string Summary { get; init; }
string? Detail { get; init; }
string? NodeKey { get; init; }
string? ServiceName { get; init; }

AlertComparison

public enum AlertComparison

How a rule’s measured value is compared to its threshold.

Values

  • GreaterThan
  • LessThan

AlertRule

public sealed record AlertRule : IEquatable<AlertRule>

A threshold rule evaluated against each node’s latest snapshot.

Constructors

AlertRule(string Id, string Name, string Metric, AlertComparison Comparison, double Threshold, AlertSeverity Severity, string Description, bool Enabled = true)

A threshold rule evaluated against each node’s latest snapshot.

Properties

AlertComparison Comparison { get; init; }

Whether breaching means above or below the threshold.

AlertSeverity Severity { get; init; }

Severity to raise when breached.

bool Enabled { get; init; }
double Threshold { get; init; }

The threshold value.

string Description { get; init; }

What the rule means / what to do.

string Id { get; init; }

Stable rule id.

string Metric { get; init; }

Which measured value the rule watches (see AlertEngine).

string Name { get; init; }

Human-readable rule name.

AlertSeverity

public enum AlertSeverity

Severity of an alert or activity entry.

Values

  • Info
  • Warning
  • Critical

AlertState

public sealed record AlertState : IEquatable<AlertState>

A raised alert instance, scoped to a service/node.

Properties

AlertSeverity Severity { get; init; }
AlertStatus Status { get; init; }
DateTimeOffset RaisedAt { get; init; }
DateTimeOffset? ResolvedAt { get; init; }
DateTimeOffset? SnoozedUntil { get; init; }
double Threshold { get; init; }
double Value { get; init; }
required string Id { get; init; }
required string RuleId { get; init; }
required string Title { get; init; }
string? Detail { get; init; }
string? NodeKey { get; init; }
string? ServiceName { get; init; }

AlertStatus

public enum AlertStatus

Lifecycle of an alert.

Values

  • Active
  • Acknowledged
  • Snoozed
  • Resolved

BulkActionResult

public sealed record BulkActionResult : IEquatable<BulkActionResult>

Outcome of a bulk DLQ action.

Constructors

BulkActionResult(int Matched, int Succeeded, int Failed, string Message)

Outcome of a bulk DLQ action.

Properties

int Failed { get; init; }
int Matched { get; init; }
int Succeeded { get; init; }
string Message { get; init; }

DashboardSummary

public sealed record DashboardSummary : IEquatable<DashboardSummary>

The rich CritterWatch-style dashboard summary.

Constructors

DashboardSummary(int ServiceCount, int HealthyServices, int CriticalServices, int NodeCount, int LiveNodes, int DownNodes, double GlobalMsgsPerHour, long DlqTotal, double DlqPerHour, int ActiveAlerts, int CriticalAlerts, IReadOnlyList<TopServiceEntry> TopBusiest, IReadOnlyList<TopServiceEntry> TopDlq, IReadOnlyList<ThroughputPoint> Throughput, IReadOnlyList<ActivityEvent> RecentEvents)

The rich CritterWatch-style dashboard summary.

Properties

IReadOnlyList<ActivityEvent> RecentEvents { get; init; }
IReadOnlyList<ThroughputPoint> Throughput { get; init; }
IReadOnlyList<TopServiceEntry> TopBusiest { get; init; }
IReadOnlyList<TopServiceEntry> TopDlq { get; init; }
double DlqPerHour { get; init; }
double GlobalMsgsPerHour { get; init; }
int ActiveAlerts { get; init; }
int CriticalAlerts { get; init; }
int CriticalServices { get; init; }
int DownNodes { get; init; }
int HealthyServices { get; init; }
int LiveNodes { get; init; }
int NodeCount { get; init; }
int ServiceCount { get; init; }
long DlqTotal { get; init; }

DeadLetterRow

public sealed record DeadLetterRow : IEquatable<DeadLetterRow>

A dead-letter row flattened across all nodes, tagged with its origin.

Constructors

DeadLetterRow(string ServiceName, string NodeKey, string Id, DeadLetterSource Source, string MessageType, string? Error, int RetryCount, DateTimeOffset? OccurredAt, string? Payload, string? ProjectionName, long? GlobalPosition)

A dead-letter row flattened across all nodes, tagged with its origin.

Properties

DateTimeOffset? OccurredAt { get; init; }
DeadLetterSource Source { get; init; }
int RetryCount { get; init; }
long? GlobalPosition { get; init; }
string Id { get; init; }
string MessageType { get; init; }
string NodeKey { get; init; }
string ServiceName { get; init; }
string? Error { get; init; }
string? Payload { get; init; }
string? ProjectionName { get; init; }

DlqSummaryRow

public sealed record DlqSummaryRow : IEquatable<DlqSummaryRow>

A grouped dead-letter summary row (CritterWatch “Summary” tab).

Constructors

DlqSummaryRow(string ServiceName, DeadLetterSource Source, string MessageType, string? Error, int Count)

A grouped dead-letter summary row (CritterWatch “Summary” tab).

Properties

DeadLetterSource Source { get; init; }
int Count { get; init; }
string MessageType { get; init; }
string ServiceName { get; init; }
string? Error { get; init; }

DurabilityRow

public sealed record DurabilityRow : IEquatable<DurabilityRow>

Per-node durability roll-up for the Durability Monitor (with sparkline history).

Constructors

DurabilityRow(string ServiceName, string NodeKey, string NodeId, long OutboxPending, long OutboxProcessing, long OutboxDeadLettered, double? OutboxOldestPendingAgeSeconds, long SchedulerDue, long SchedulerPending, long SchedulerDeadLettered, long InboxProcessed, long InboxDeduplicated, IReadOnlyList<long> OutboxPendingHistory, IReadOnlyList<double> ErrorsHistory)

Per-node durability roll-up for the Durability Monitor (with sparkline history).

Properties

IReadOnlyList<double> ErrorsHistory { get; init; }
IReadOnlyList<long> OutboxPendingHistory { get; init; }
double? OutboxOldestPendingAgeSeconds { get; init; }
long InboxDeduplicated { get; init; }
long InboxProcessed { get; init; }
long OutboxDeadLettered { get; init; }
long OutboxPending { get; init; }
long OutboxProcessing { get; init; }
long SchedulerDeadLettered { get; init; }
long SchedulerDue { get; init; }
long SchedulerPending { get; init; }
string NodeId { get; init; }
string NodeKey { get; init; }
string ServiceName { get; init; }

EndpointRow

public sealed record EndpointRow : IEquatable<EndpointRow>

A registered listener/endpoint, deduplicated per service.

Constructors

EndpointRow(string ServiceName, string Name, string Kind, string MessageType, string? HttpMethod, string? Route, string? CircuitState)

A registered listener/endpoint, deduplicated per service.

Properties

string Kind { get; init; }
string MessageType { get; init; }
string Name { get; init; }
string ServiceName { get; init; }
string? CircuitState { get; init; }
string? HttpMethod { get; init; }
string? Route { get; init; }

ListenerRow

public sealed record ListenerRow : IEquatable<ListenerRow>

A broker listener row flattened across nodes.

Constructors

ListenerRow(string ServiceName, string NodeKey, string Name, string QueueName, IReadOnlyList<string> RoutingKeys, string Transport, string State)

A broker listener row flattened across nodes.

Properties

IReadOnlyList<string> RoutingKeys { get; init; }
string Name { get; init; }
string NodeKey { get; init; }
string QueueName { get; init; }
string ServiceName { get; init; }
string State { get; init; }
string Transport { get; init; }

MetricSample

public sealed record MetricSample : IEquatable<MetricSample>

One point in a node’s metric history; the source of the dashboard sparklines.

Constructors

MetricSample(DateTimeOffset Timestamp, double CommandsPerSec, double QueriesPerSec, double ErrorsPerSec, long OutboxPending, long ProjectionMaxLag, long DeadLetterTotal, double CommandP95Ms, double SentPerSec = 0, double RcvdPerSec = 0, double ExceptionsPerSec = 0, double MsgsPerSec = 0, double AvgExecMs = 0)

One point in a node’s metric history; the source of the dashboard sparklines.

Properties

DateTimeOffset Timestamp { get; init; }

When the sample was taken (UTC).

double AvgExecMs { get; init; }
double CommandP95Ms { get; init; }

Approximate command-duration p95 over the window.

double CommandsPerSec { get; init; }

Command throughput since the previous snapshot.

double ErrorsPerSec { get; init; }

Dead-letter throughput since the previous snapshot.

double ExceptionsPerSec { get; init; }
double MsgsPerSec { get; init; }
double QueriesPerSec { get; init; }

Query throughput since the previous snapshot.

double RcvdPerSec { get; init; }
double SentPerSec { get; init; }
long DeadLetterTotal { get; init; }

Total dead-lettered rows across sources at the sample.

long OutboxPending { get; init; }

Outbox pending depth at the sample.

long ProjectionMaxLag { get; init; }

Largest projection lag at the sample.

NodeKpis

public sealed record NodeKpis : IEquatable<NodeKpis>

Current KPI roll-up for a node or service.

Properties

double AvgExecMs { get; init; }
double CacheHitRate { get; init; }
double CommandP95Ms { get; init; }
double CommandsPerSec { get; init; }
double DlqPerHour { get; init; }
double ExceptionsPerHour { get; init; }
double MsgsPerHour { get; init; }
double QueriesPerSec { get; init; }
double RcvdPerHour { get; init; }
double SentPerHour { get; init; }
long DeadLetterTotal { get; init; }
long OutboxDeadLettered { get; init; }
long OutboxPending { get; init; }
long ProjectionMaxLag { get; init; }
long SagasActive { get; init; }
long SagasFaulted { get; init; }
long SchedulerDeadLettered { get; init; }
long SchedulerDue { get; init; }

NodeStatus

public enum NodeStatus

Liveness of a node derived from its last heartbeat.

Values

  • Live
  • Stale
  • Down

NodeView

public sealed record NodeView : IEquatable<NodeView>

A node as the dashboard sees it: identity, liveness, current KPIs, and recent history.

Properties

DateTimeOffset LastSeen { get; init; }
DateTimeOffset StartedAt { get; init; }
IReadOnlyList<MetricSample> History { get; init; }

Recent metric samples for sparklines (oldest first).

IReadOnlyList<string> Capabilities { get; init; }
IReadOnlyList<string> Transports { get; init; }
NodeKpis Kpis { get; init; }

Latest KPI roll-up.

NodeStatus Status { get; init; }
RelaySnapshot? Snapshot { get; init; }

The most recent full snapshot (drives detail tabs).

bool HasControlChannel { get; init; }
bool Healthy { get; init; }
int WorkerCount { get; init; }
required string NodeId { get; init; }
required string NodeKey { get; init; }
required string ServiceName { get; init; }
string? DatabaseName { get; init; }
string? Environment { get; init; }
string? FrameworkVersion { get; init; }
string? MachineName { get; init; }
string? ServiceVersion { get; init; }

OverviewSummary

public sealed record OverviewSummary : IEquatable<OverviewSummary>

The dashboard landing summary.

Constructors

OverviewSummary(int ServiceCount, int NodeCount, int LiveNodes, int DownNodes, NodeKpis Totals, int ActiveAlerts, IReadOnlyList<ServiceView> Services, IReadOnlyList<AlertState> TopAlerts, IReadOnlyList<ActivityEvent> RecentActivity)

The dashboard landing summary.

Properties

IReadOnlyList<ActivityEvent> RecentActivity { get; init; }
IReadOnlyList<AlertState> TopAlerts { get; init; }
IReadOnlyList<ServiceView> Services { get; init; }
NodeKpis Totals { get; init; }
int ActiveAlerts { get; init; }
int DownNodes { get; init; }
int LiveNodes { get; init; }
int NodeCount { get; init; }
int ServiceCount { get; init; }

ProjectionRow

public sealed record ProjectionRow : IEquatable<ProjectionRow>

A projection’s status flattened across nodes.

Constructors

ProjectionRow(string ServiceName, string NodeKey, string Name, long Position, long HeadPosition, long Lag, int DeadLetterCount, string? LastError, string Status)

A projection’s status flattened across nodes.

Properties

int DeadLetterCount { get; init; }
long HeadPosition { get; init; }
long Lag { get; init; }
long Position { get; init; }
string Name { get; init; }
string NodeKey { get; init; }
string ServiceName { get; init; }
string Status { get; init; }
string? LastError { get; init; }

SagaRow

public sealed record SagaRow : IEquatable<SagaRow>

A saga instance flattened across nodes.

Constructors

SagaRow(string ServiceName, string NodeKey, Guid SagaId, string SagaType, string CorrelationKey, string Status, string? CurrentState, int Version, DateTimeOffset CreatedAt, DateTimeOffset UpdatedAt)

A saga instance flattened across nodes.

Properties

DateTimeOffset CreatedAt { get; init; }
DateTimeOffset UpdatedAt { get; init; }
Guid SagaId { get; init; }
int Version { get; init; }
string CorrelationKey { get; init; }
string NodeKey { get; init; }
string SagaType { get; init; }
string ServiceName { get; init; }
string Status { get; init; }
string? CurrentState { get; init; }

ScheduledRow

public sealed record ScheduledRow : IEquatable<ScheduledRow>

An upcoming or failed scheduled message flattened across nodes.

Constructors

ScheduledRow(string ServiceName, string NodeKey, Guid Id, string MessageType, string Kind, DateTimeOffset? ScheduledFor, int RetryCount, bool Failed, string? Error)

An upcoming or failed scheduled message flattened across nodes.

Properties

DateTimeOffset? ScheduledFor { get; init; }
Guid Id { get; init; }
bool Failed { get; init; }
int RetryCount { get; init; }
string Kind { get; init; }
string MessageType { get; init; }
string NodeKey { get; init; }
string ServiceName { get; init; }
string? Error { get; init; }

ServiceView

public sealed record ServiceView : IEquatable<ServiceView>

A logical service: its nodes rolled up.

Properties

IReadOnlyList<NodeView> Nodes { get; init; }
IReadOnlyList<string> Capabilities { get; init; }
IReadOnlyList<string> Transports { get; init; }
NodeKpis Kpis { get; init; }
NodeStatus Status { get; init; }
bool Healthy { get; init; }
int LiveNodes { get; init; }
int NodeCount { get; init; }
required string ServiceName { get; init; }
string? DatabaseName { get; init; }
string? FrameworkVersion { get; init; }
string? Version { get; init; }

ThroughputPoint

public sealed record ThroughputPoint : IEquatable<ThroughputPoint>

A point on the system throughput series.

Constructors

ThroughputPoint(DateTimeOffset Timestamp, double MsgsPerSec)

A point on the system throughput series.

Properties

DateTimeOffset Timestamp { get; init; }
double MsgsPerSec { get; init; }

TopServiceEntry

public sealed record TopServiceEntry : IEquatable<TopServiceEntry>

Top-N entry (busiest / DLQ).

Constructors

TopServiceEntry(string ServiceName, double Value)

Top-N entry (busiest / DLQ).

Properties

double Value { get; init; }
string ServiceName { get; init; }

TopologyEdge

public sealed record TopologyEdge : IEquatable<TopologyEdge>

A directed edge in the topology graph (service publishes/subscribes an event type).

Constructors

TopologyEdge(string From, string To, string Kind, string? RoutingKey)

A directed edge in the topology graph (service publishes/subscribes an event type).

Properties

string From { get; init; }
string Kind { get; init; }
string To { get; init; }
string? RoutingKey { get; init; }

TopologyGraph

public sealed record TopologyGraph : IEquatable<TopologyGraph>

The full message-topology graph.

Constructors

TopologyGraph(IReadOnlyList<TopologyVertex> Vertices, IReadOnlyList<TopologyEdge> Edges)

The full message-topology graph.

Properties

IReadOnlyList<TopologyEdge> Edges { get; init; }
IReadOnlyList<TopologyVertex> Vertices { get; init; }

TopologyVertex

public sealed record TopologyVertex : IEquatable<TopologyVertex>

A node in the topology graph (a service or an event type).

Constructors

TopologyVertex(string Id, string Label, string Kind)

A node in the topology graph (a service or an event type).

Properties

string Id { get; init; }
string Kind { get; init; }
string Label { get; init; }