C# Class Examples.ControlClientAsUpdateSource.UpdateSource

Inheritance: TopicUpdateSourceDefault
显示文件 Open project: pushtechnology/diffusion-examples

Public Methods

Method Description
OnActive ( string topicPath, ITopicUpdater updater ) : void

State notification that this source is now active for the specified topic path, and is therefore in a valid state to send updates on topics at or below the registered topic path.

OnClose ( string topicPath ) : void

Called if the handler is closed. The handler will be closed if the session is closed after the handler has been registered, or if the handler is unregistered using close. No further calls will be made for the handler.

UpdateSource ( IPriceProvider provider, ITopicUpdaterUpdateCallback callback ) : System.Threading

Method Details

OnActive() public method

State notification that this source is now active for the specified topic path, and is therefore in a valid state to send updates on topics at or below the registered topic path.
public OnActive ( string topicPath, ITopicUpdater updater ) : void
topicPath string The registration path.
updater ITopicUpdater An updater that may be used to update topics at or below the registered path.
return void

OnClose() public method

Called if the handler is closed. The handler will be closed if the session is closed after the handler has been registered, or if the handler is unregistered using close. No further calls will be made for the handler.
public OnClose ( string topicPath ) : void
topicPath string the branch of the topic tree for which the handler was registered
return void

UpdateSource() public method

public UpdateSource ( IPriceProvider provider, ITopicUpdaterUpdateCallback callback ) : System.Threading
provider IPriceProvider
callback ITopicUpdaterUpdateCallback
return System.Threading