Interface ITopicInfo
Provides metadata about a messaging topic, including its type and activity timestamps.
Namespace: Unity.SimulationPro.Foundation
Assembly: Unity.SimulationPro.Foundation.dll
Syntax
public interface ITopicInfo
Remarks
ITopicInfo instances are returned by GetTopicInfo(string, MessageDisambiguator) and GetAllTopics(). They can be used to inspect which topics are active and whether messages have been recently sent or received.
Properties
IsPublisher
Gets a value indicating whether this topic has an active publisher.
Declaration
bool IsPublisher { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsSubscriber
Gets a value indicating whether this topic has at least one active subscriber.
Declaration
bool IsSubscriber { get; }
Property Value
| Type | Description |
|---|---|
| bool |
LastReceivedAtWallTime
Gets the UTC wall-clock time at which the last message was received on this topic.
Declaration
DateTime LastReceivedAtWallTime { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |
LastSentAtWallTime
Gets the UTC wall-clock time at which the last message was sent on this topic.
Declaration
DateTime LastSentAtWallTime { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |
MessageTypeId
Gets the message type identifier for messages on this topic.
Declaration
MessageTypeId MessageTypeId { get; }
Property Value
| Type | Description |
|---|---|
| MessageTypeId |
Topic
Gets the topic string this info describes.
Declaration
string Topic { get; }
Property Value
| Type | Description |
|---|---|
| string |