Esempio n. 1
0
 /// <summary>
 ///     Disconnects an active session.  If the server is not running, an exception will be raised.
 ///     If the given session is not a valid session for this server, an exception will be raised.
 /// </summary>
 public void Disconnect(IServerSession session)
 {
     try
     {
         _serverConnection.Disconnect(((LocalSession)session).RemoteSession);
     }
     catch
     {
         // do nothing on an exception here
     }
     ((LocalSession)session).Dispose();
 }