C# Class PushTechnology.ClientInterface.Examples.Control.RemoveCallback

Basic implementation of the ITopicRemovalCallback.
Inheritance: ITopicControlRemovalCallback
Exibir arquivo Open project: pushtechnology/diffusion-examples Class Usage Examples

Public Methods

Method Description
OnError ( ErrorReason errorReason ) : void

Notification 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.

OnTopicsRemoved ( ) : void

Topic(s) have been removed.

RemoveCallback ( string topicPath ) : System

Constructor.

Wait ( System.TimeSpan timeout ) : bool

Wait for one of the callbacks for a given time.

Method Details

OnError() public method

Notification 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 OnError ( ErrorReason errorReason ) : void
errorReason ErrorReason The error reason.
return void

OnTopicsRemoved() public method

Topic(s) have been removed.
public OnTopicsRemoved ( ) : void
return void

RemoveCallback() public method

Constructor.
public RemoveCallback ( string topicPath ) : System
topicPath string The topic path.
return System

Wait() public method

Wait for one of the callbacks for a given time.
public Wait ( System.TimeSpan timeout ) : bool
timeout System.TimeSpan Time to wait for the callback.
return bool