Table of Contents

Interface ISessionOpenCallback

Namespace
PushTechnology.ClientInterface.Client.Session
Assembly
Diffusion.Client.dll

The callback interface for non-blocking opening of sessions.

[Obsolete("Deprecated since 6.12. Use ISessionFactory.OpenAsync instead. This interface will be removed in a future release.")]
public interface ISessionOpenCallback : ICallback
Inherited Members

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

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.

Caution

Deprecated since 6.12. Use the new OpenAsync() instead. This interface will be removed in a future release.


Added in 5.3.

Methods

OnOpened(ISession)

Called when a session has been successfully opened.

void OnOpened(ISession session)

Parameters

session ISession

The opened session instance.

Remarks

Added in 5.3.