public SessionRefreshThread(SessionHelper session, Glacier2.RouterPrx router, int period) { _session = session; _router = router; _period = period; _done = false; }
connectFailed(Glacier2.SessionHelper session, System.Exception exception) { try { throw exception; } catch(Glacier2.PermissionDeniedException) { Console.Out.WriteLine("ok"); lock(me) { wakeUp(); } } catch(System.Exception) { test(false); } }
public void disconnected(Glacier2.SessionHelper session) { test(false); }
public void connectFailed(Glacier2.SessionHelper session, System.Exception ex) { Console.Out.WriteLine(ex.ToString()); test(false); }
public void disconnected(Glacier2.SessionHelper session) { Console.Out.WriteLine("ok"); me.lck.Lock(); try { wakeUp(); } finally { me.lck.Unlock(); } }
public SessionRefreshTask(Application app, Glacier2.RouterPrx router) { _app = app; _router = router; }
disconnected(Glacier2.SessionHelper session) { Console.Out.WriteLine("ok"); lock(me) { wakeUp(); } }
public void connectFailed(Glacier2.SessionHelper session, Exception exception) { // // Ignore callbacks during shutdown. // if(_exit) { return; } try { throw exception; } catch(Glacier2.CannotCreateSessionException ex) { setError("Login failed (Glacier2.CannotCreateSessionException):\n" + ex.reason); } catch(Glacier2.PermissionDeniedException ex) { setError("Login failed (Glacier2.PermissionDeniedException):\n" + ex.reason); } catch(Ice.Exception ex) { setError("Login failed (" + ex.ice_id() + ").\n" + "Please check your configuration."); } catch(System.Exception ex) { setError("Login failed:\n" + ex.ToString()); } }
connectFailed(Glacier2.SessionHelper session, System.Exception exception) { try { throw exception; } catch(Ice.CommunicatorDestroyedException) { Console.Out.WriteLine("ok"); lock(me) { wakeUp(); } } catch(System.Exception) { test(false); } }
public SessionRefreshTask(SessionHelper session, Glacier2.RouterPrx router) { _session = session; _router = router; }
public void disconnected(Glacier2.SessionHelper session) { // // Ignore callbacks during shutdown. // if(_exit) { return; } _username = ""; if(_model.State == ClientState.Disconnecting) // Connection closed by user logout/exit { setState(ClientState.Disconnected); } else if(_model.State == ClientState.Connected) // Connection lost while user was chatting { setError( "<system-message> - The connection with the server was unexpectedly lost.\n" + "You can try Login again from the File menu."); } else // Connection lost while user was connecting { setError( "<system-message> - The connection with the server was unexpectedly lost.\n" + "Try again."); } }
public void createdCommunicator(Glacier2.SessionHelper session) { }
public async void connected(Glacier2.SessionHelper session) { // // Ignore callbacks during shutdown. // if(_exit) { return; } // // If the session has been reassigned avoid the spurious callback. // if(session != _session) { return; } Chat.ChatRoomCallbackPrx callback = Chat.ChatRoomCallbackPrxHelper.uncheckedCast( _session.addWithUUID(new ChatRoomCallbackI(this))); _chat = Chat.ChatSessionPrxHelper.uncheckedCast(_session.session()); try { await _chat.setCallbackAsync(callback); _username = ChatUtils.formatUsername(_info.Username); _info.save(); setState(ClientState.Connected); } catch(Ice.CommunicatorDestroyedException) { //Ignore client session was destroyed. } catch(Exception) { destroySession(); } }
public void connectFailed(Glacier2.SessionHelper session, System.Exception exception) { try { throw exception; } catch(Ice.ConnectionRefusedException) { Console.Out.WriteLine("ok"); me.lck.Lock(); try { wakeUp(); } finally { me.lck.Unlock(); } } catch(System.Exception) { test(false); } }
connected(Glacier2.SessionHelper session) { test(false); }
public void createdCommunicator(Glacier2.SessionHelper session) { test(session.communicator() != null); }
public SessionPingThread(Application app, Glacier2.RouterPrx router, long period) { _app = app; _router = router; _period = period; _done = false; }