Class DefaultValueStream<TValue>
Represents the abstract default value stream.
Inherited Members
Namespace: PushTechnology.ClientInterface.Client.Features.Topics
Assembly: Diffusion.Client.dll
Syntax
public class DefaultValueStream<TValue> : DefaultSubscriberStream, IValueStream<TValue>, ISubscriberStream, IStream, ICallback
Type Parameters
Name | Description |
---|---|
TValue | The value type. |
Remarks
This logs all calls at 'Debug' level. These implementations may be useful during development but are usually overridden to provide meaningful processing.
Since 5.8
Methods
OnValue(String, ITopicSpecification, TValue, TValue)
Notifies an update to a topic value from the server.
Declaration
public virtual void OnValue(string topicPath, ITopicSpecification specification, TValue oldValue, TValue newValue)
Parameters
Type | Name | Description |
---|---|---|
String | topicPath | The topic path. |
ITopicSpecification | specification | The topic specification. |
TValue | oldValue | The previous value, which may be null if this is the first value. |
TValue | newValue | The new value derived from the last update received from the server. |
Remarks
This is also called to provide the current value for any matching topic that the client is already subscribed to when the stream is added.