Class WorkflowStreamClientTopicHandle<T>
- Namespace
- Temporalio.Extensions.WorkflowStreams
- Assembly
- Temporalio.Extensions.WorkflowStreams.dll
A strongly typed client-side handle bound to one topic.
public sealed class WorkflowStreamClientTopicHandle<T>
Type Parameters
TType of values published to and received from the topic.
- Inheritance
-
WorkflowStreamClientTopicHandle<T>
- Inherited Members
Remarks
WARNING: Workflow Streams is experimental and may change.
Properties
Name
Gets the topic name.
public string Name { get; }
Property Value
Methods
Publish(Payload, bool)
Buffers a pre-built Temporal payload for publication on this topic.
public void Publish(Payload payload, bool forceFlush = false)
Parameters
payloadPayloadThe payload to publish.
forceFlushboolWhether to wake the asynchronous flusher immediately.
Publish(T, bool)
Converts and buffers a value for publication on this topic.
public void Publish(T value, bool forceFlush = false)
Parameters
valueTThe value to publish.
forceFlushboolWhether to wake the asynchronous flusher immediately.
SubscribeAsync(long)
Creates a reusable subscription to this topic.
public IAsyncEnumerable<WorkflowStreamItem<T>> SubscribeAsync(long fromOffset = 0)
Parameters
fromOffsetlongThe global offset at which to begin.
Returns
- IAsyncEnumerable<WorkflowStreamItem<T>>
A reusable asynchronous stream.