C# Class PushTechnology.ClientInterface.GettingStarted.AddCallback

Basic implementation of the ITopicControlAddCallback.
Inheritance: ITopicControlAddCallback
Mostrar archivo Open project: pushtechnology/diffusion-examples Class Usage Examples

Public Methods

Method Description
AddCallback ( ) : System
OnDiscard ( ) : void

This is called to notify that a call context was closed prematurely, typically due to a timeout or the session being closed. No further calls will be made for the context.

OnTopicAddFailed ( string topicPath, TopicAddFailReason reason ) : void

This is called to notify that an attempt to add a topic has failed.

OnTopicAdded ( string topicPath ) : void

This is called to notify that the topic has been added.

Wait ( System.TimeSpan timeout ) : bool

Method Details

AddCallback() public method

public AddCallback ( ) : System
return System

OnDiscard() public method

This is called to notify that a call context was closed prematurely, typically due to a timeout or the session being closed. No further calls will be made for the context.
public OnDiscard ( ) : void
return void

OnTopicAddFailed() public method

This is called to notify that an attempt to add a topic has failed.
public OnTopicAddFailed ( string topicPath, TopicAddFailReason reason ) : void
topicPath string The topic path as supplied to the add request.
reason TopicAddFailReason The reason for failure.
return void

OnTopicAdded() public method

This is called to notify that the topic has been added.
public OnTopicAdded ( string topicPath ) : void
topicPath string The full path of the topic that was added.
return void

Wait() public method

public Wait ( System.TimeSpan timeout ) : bool
timeout System.TimeSpan
return bool