Class PublishStreamEvent
A directive or acknowledgement received from the block node over an open publish stream.
Implements
Inherited Members
Namespace: Hiero.BlockNode
Assembly: Hiero.dll
Syntax
[Experimental("HIERO001", UrlFormat = "https://github.com/bugbytesinc/Hiero/blob/main/docs/blocknode-client-plan.md")]
public sealed record PublishStreamEvent : IEquatable<PublishStreamEvent>
Remarks
Delivered in arrival order via Events. The caller MUST consume the event stream: SkipBlock, ResendBlock and BehindPublisher require action before or during subsequent writes.
Properties
| Edit this page View SourceBlockNumber
The block number the event refers to (for acknowledgements, cumulative: all blocks up to and including this number).
Declaration
public ulong BlockNumber { get; }
Property Value
| Type | Description |
|---|---|
| ulong |
EndReason
The node's termination reason; populated only when Kind is StreamEnded.
Declaration
public PublishStreamEndReason? EndReason { get; }
Property Value
| Type | Description |
|---|---|
| PublishStreamEndReason? |
Kind
The kind of directive or acknowledgement.
Declaration
public PublishStreamEventKind Kind { get; }
Property Value
| Type | Description |
|---|---|
| PublishStreamEventKind |