Diffusion .NET Client Library  6.1.5
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
PushTechnology.ClientInterface.Client.Features.Topics.IValueStream< in TValue > Interface Template Reference

The stream interface that can be registered to subscription and value events whenever an update is received from the server. More...

Inheritance diagram for PushTechnology.ClientInterface.Client.Features.Topics.IValueStream< in TValue >:
PushTechnology.ClientInterface.Client.Features.Topics.DefaultValueStream< TValue >

Public Member Functions

void OnValue (string topicPath, ITopicSpecification specification, TValue oldValue, TValue newValue)
 Notifies an update to a topic value from the server. More...
 

Detailed Description

The stream interface that can be registered to subscription and value events whenever an update is received from the server.

A stream implementation can be registered using ITopics.AddStream{TValue}(ITopicSelector,IValueStream{TValue}). The stream will receive events for the topics that are selected by the topic selector and have a type compatible with.

A stream implementation can also be registered as a fallback stream using ITopics.AddFallbackStream{TValue}. Fallback streams will receive events for all topics that are not selected by other streams the session has registered using AddStream or AddTopicStream.

If the stream is removed, OnClose will be called.

If the session is closed, OnError will be called with ErrorReason.SESSION_CLOSED.

See ITopics class documentation for further details of the use of value streams.

Template Parameters
TValueThe value type.

Member Function Documentation

void PushTechnology.ClientInterface.Client.Features.Topics.IValueStream< in TValue >.OnValue ( string  topicPath,
ITopicSpecification  specification,
TValue  oldValue,
TValue  newValue 
)

Notifies an update to a topic value from the server.

Parameters
topicPathThe topic path.
specificationThe topic specification.
oldValueThe previous value, which may be null if this is the first value.
newValueThe new value derived from the last update received from the server.

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.

Implemented in PushTechnology.ClientInterface.Client.Features.Topics.DefaultValueStream< TValue >.


The documentation for this interface was generated from the following file: