Show / Hide Table of Contents

Class SubscribeTopicParams

Inheritance
Object
SubscribeTopicParams
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Hashgraph
Assembly: Hashgraph.dll
Syntax
public class SubscribeTopicParams

Properties

| Improve this Doc View Source

CancellationToken

Optional cancelation token, that when set, closes the mirror node connection and optionally the .net channel (if configured to do so), and causes the SubscribeTopic method to return without error. Default is "none", the method can be completed by signaling the receiving .net channel as completed.

Declaration
public CancellationToken CancellationToken { get; set; }
Property Value
Type Description
CancellationToken
| Improve this Doc View Source

CompleteChannelWhenFinished

Indicate that the .net channel should be "completed" when the streaming connection to the mirror node completes, both for planned and faulted reasons. Default is true. Set to false to re-use the channel or for scenarios where it may be combined and multiplexed with other channel combinations.

Declaration
public bool CompleteChannelWhenFinished { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

Ending

Optional, filter for messages which reached consensus before this time. If not set, it will stream indefinitely.

Declaration
public DateTime? Ending { get; set; }
Property Value
Type Description
Nullable<DateTime>
| Improve this Doc View Source

MaxCount

Optional, the maximum number of topic messages to return before completing the call, if set to 0 it will stream messages indefinitely until the stream terminates by other means.

Declaration
public ulong MaxCount { get; set; }
Property Value
Type Description
UInt64
| Improve this Doc View Source

MessageWriter

.NET system threadding channel writer receiving messages streamed from the server. Messages can be read from the stream by calling code without blocking the incoming stream of messages from the mirror node. Completing the stream will close the streaming connection to the mirror node and cause this method to return without error.

Declaration
public ChannelWriter<TopicMessage> MessageWriter { get; set; }
Property Value
Type Description
ChannelWriter<TopicMessage>
| Improve this Doc View Source

Starting

Optional, filter for messages which reached consensus on or after this time. If not set, messages occurring from the current time forward are returned.

Declaration
public DateTime? Starting { get; set; }
Property Value
Type Description
Nullable<DateTime>
| Improve this Doc View Source

Topic

The Message's Topic.

Declaration
public Address Topic { get; set; }
Property Value
Type Description
Address
  • Improve this Doc
  • View Source
In This Article
Back to top .NET Client Library for Hedera Hashgraph