Docs · API reference · Verso.Abstractions

OutputChannelProtocol Class#

Identifies the version of the message protocol spoken across an output channel: the framework message types exchanged between a host and the view drawing one output, plus their payload shapes.

public static class OutputChannelProtocol

Inheritance System.Object → OutputChannelProtocol

Remarks#

The view declares the version it was built against when it reports itself ready, and the host compares that against Version. A mismatch is reported and the view is mounted anyway, because a view built against a neighbouring version usually works and refusing to draw it would turn a warning into a blank output.

The version uses a major.minor form, read the same way LayoutBridgeProtocol reads its own: a change to the major component signals an incompatible protocol, and a minor bump signals a backward-compatible addition such as a new optional field.

Fields#

Version Field#

The protocol version this build of the host speaks, and the value a view should declare when it targets the current contract.

public const string Version = "1.0";

Field Value#

System.String

Methods#

MajorOf(string) Method#

The major component of a major.minor version string, or null when there is nothing to read. Two views agreeing here are close enough to talk to each other.

public static string? MajorOf(string? version);

Parameters#

version System.String

Returns#

System.String