C# Class Examples.ClientUsingFetch

This is a simple example of a client that fetches the state of topics but does not subscribe to them. This makes use of the ITopics feature only.
Exibir arquivo Open project: pushtechnology/diffusion-examples

Public Methods

Method Description
ClientUsingFetch ( ) : PushTechnology.ClientInterface.Client.Factories
Close ( ) : void

Close the session.

Fetch ( string topicSelector, string fetchContext, IFetchContextStream stream ) : void

Issues a fetch request for a topic or selection of topics.

Method Details

ClientUsingFetch() public method

public ClientUsingFetch ( ) : PushTechnology.ClientInterface.Client.Factories
return PushTechnology.ClientInterface.Client.Factories

Close() public method

Close the session.
public Close ( ) : void
return void

Fetch() public method

Issues a fetch request for a topic or selection of topics.
public Fetch ( string topicSelector, string fetchContext, IFetchContextStream stream ) : void
topicSelector string A expression.
fetchContext string The context string to be returned with the fetch response(s).
stream IFetchContextStream The callback for fetch responses.
return void