Interface ISessionOpenCallback

The callback interface for non-blocking opening of sessions.

Inherited Members
ICallback.OnError(ErrorReason)
Namespace: PushTechnology.ClientInterface.Client.Session
Assembly: Diffusion.Client.dll
Syntax
public interface ISessionOpenCallback : ICallback
Remarks

This is used when a session is opened using Open(String, ISessionOpenCallback).

It is guaranteed that one and only one of the callback methods will be called.


Added in 5.3.

Examples

An example implementation for the callback.

class SessionOpenCallback : ISessionOpenCallback {
    public void OnError( ErrorReason errorReason ) {
        // TODO: Handle session open error in here.
    }

    public void OnOpened( ISession session ) {
        // TODO: Handle opened session in here.
    }
}

Methods

OnOpened(ISession)

Called when a session has been successfully opened.

Declaration
void OnOpened(ISession session)
Parameters
Type Name Description
ISession session

The opened session instance.

Remarks

Added in 5.3.

Back to top