Table of Contents

Class ProtocolDataHeader

Namespace
SmarterLink.Core.Protocol
Assembly
SmarterLink.Core.dll

The envelope header present on every SmarterLink message. Contains routing metadata, ordering information, and an optional application-defined UserData string.

public record ProtocolDataHeader : IEquatable<ProtocolDataHeader>
Inheritance
ProtocolDataHeader
Implements
Inherited Members

Constructors

The envelope header present on every SmarterLink message. Contains routing metadata, ordering information, and an optional application-defined UserData string.

public ProtocolDataHeader(string PayloadType, long MonotonicCounter, int ProtocolRevision = 0, string? UserData = null)

Parameters

PayloadType string
MonotonicCounter long
ProtocolRevision int
UserData string

Properties

[Description("Can be used to store either a timestamp (eg, milliseconds since Unix epoch) or just an increasing counter.  Used to determine the relative order of messages.")]
public long MonotonicCounter { get; init; }

Property Value

long
[JsonRequired]
public string PayloadType { get; init; }

Property Value

string
[JsonRequired]
public int ProtocolRevision { get; init; }

Property Value

int
public string? UserData { get; init; }

Property Value

string