private void destroySession() { if(_session != null) { _session.destroy(); _session = null; } }
public void doLogin() { LoginDialog loginDialog = new LoginDialog(_loginData); Util.centerWindow(loginDialog, this); if(loginDialog.ShowModal()) { status.Content = "Connecting"; _factory.setRouterHost(_loginData.routerHost); _factory.setRouterIdentity(new Ice.Identity("router", "DemoGlacier2")); _session = _factory.connect(_loginData.userName, _loginData.password); _cancelDialog = new CancelDialog(); Util.centerWindow(_cancelDialog, this); if(_cancelDialog.ShowModal()) { destroySession(); } } }
public void disconnected(SessionHelper session) { // If the session has been reassigned avoid the // spurious callback. if(session != _session) { return; } closeCancelDialog(); _session = null; _chat = null; input.IsEnabled = false; status.Content = "Not connected"; }
public void createdCommunicator(Glacier2.SessionHelper session) { }
public void CreatedCommunicator(Glacier2.SessionHelper session) => Assert(session.Communicator != null);
public void Disconnected(Glacier2.SessionHelper session) => Assert(false);