Class WorkflowStreamItem<T>
- Namespace
- Temporalio.Extensions.WorkflowStreams
- Assembly
- Temporalio.Extensions.WorkflowStreams.dll
A decoded, strongly typed Workflow Streams subscription item.
public sealed record WorkflowStreamItem<T> : IEquatable<WorkflowStreamItem<T>>
Type Parameters
TType of the decoded value.
- Inheritance
-
WorkflowStreamItem<T>
- Implements
- Inherited Members
Remarks
WARNING: Workflow Streams is experimental and may change.
Constructors
WorkflowStreamItem(string, T, long)
A decoded, strongly typed Workflow Streams subscription item.
public WorkflowStreamItem(string Topic, T Value, long Offset)
Parameters
TopicstringThe item's topic, or an empty string for no topic.
ValueTThe decoded value.
OffsetlongThe item's global offset.
Remarks
WARNING: Workflow Streams is experimental and may change.
Properties
Offset
The item's global offset.
public long Offset { get; init; }
Property Value
Topic
The item's topic, or an empty string for no topic.
public string Topic { get; init; }
Property Value
Value
The decoded value.
public T Value { get; init; }
Property Value
- T