BridgeOperationStreamRead record

Namespace Runic.Application.Views · Runic.Application 0.7.0-preview.5

public sealed record BridgeOperationStreamRead : IEquatable<BridgeOperationStreamRead>

Inherits or implements IEquatable.

The result of BridgeOperationStream.ReadAfter.

Parameters

Items

Values after the requested cursor.

NextCursor

The cursor to pass to the next read.

Completed

Whether the stream is complete.

Failure

The terminal delivery failure, if any.

Constructors

BridgeOperationStreamRead

public BridgeOperationStreamRead(IReadOnlyList<BridgeOperationStreamItem> Items, long NextCursor, bool Completed, BridgeOperationDeliveryFailure? Failure)

The result of BridgeOperationStream.ReadAfter.

Parameters

Items

Values after the requested cursor.

NextCursor

The cursor to pass to the next read.

Completed

Whether the stream is complete.

Failure

The terminal delivery failure, if any.

Properties

Completed

public bool Completed { get; init; }

Whether the stream is complete.

Failure

public BridgeOperationDeliveryFailure? Failure { get; init; }

The terminal delivery failure, if any.

Items

public IReadOnlyList<BridgeOperationStreamItem> Items { get; init; }

Values after the requested cursor.

NextCursor

public long NextCursor { get; init; }

The cursor to pass to the next read.