Exemplo n.º 1
0
        private void ReleaseSession()
        {
            var session = coreServer.GetSession(ClientSocket);

            coreServer.RemoveSession(ref session);

            if (ClientSocket != null)
            {
                ClientSocket.Close();
                ClientSocket.Dispose();
                ClientSocket = null;
            }
        }
 protected virtual void Dispose(bool disposing)
 {
     if (disposed)
     {
         return;
     }
     if (disposing)
     {
         uriRequest = null;
         if (session != null)
         {
             coreServer.RemoveSession(ref session);
         }
     }
     disposed = true;
 }