//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
using System;
namespace Glacier2
{
///
/// A callback class to get notifications of status changes in the
/// Glacier2 session. All callbacks on the SessionCallback interface
/// occur in the main swing thread.
///
public interface SessionCallback
{
///
/// Notifies the application that the communicator was created.
///
/// The Glacier2 session.
void createdCommunicator(SessionHelper session);
///
/// Notifies the application that the Glacier2 session has
/// been established.
///
/// The established session.
void connected(SessionHelper session);
///
/// Notifies the application that the Glacier2 session has been
/// disconnected.
///
/// The disconnected session.
void disconnected(SessionHelper session);
///
/// Notifies the application that the Glacier2 session
/// establishment failed.
///
/// The session reporting the connection
/// failure.
/// The exception.
void connectFailed(SessionHelper session, Exception ex);
}
}