示例#1
0
 public void Run()
 {
     try
     {
         var socket            = _enclosing._serverSocket.Accept();
         var messageDispatcher = new ServerMessageDispatcherImpl(_enclosing,
                                                                 new ClientTransactionHandle(_enclosing._transactionPool), socket
                                                                 , _enclosing.NewThreadId(), false, threadContainer.Lock());
         _enclosing.AddServerMessageDispatcher(messageDispatcher);
         _enclosing.ThreadPool().Start("server message dispatcher (still initializing)"
                                       , messageDispatcher);
     }
     catch (Exception)
     {
     }
 }
示例#2
0
 public object Run()
 {
     _enclosing.ThreadPool().Start(_enclosing._name, _enclosing);
     return(null);
 }