Пример #1
0
        private void StartDispatcherThread(Socket4Adapter socket, string user)
        {
            if (!_singleThreaded)
            {
                StartAsynchronousMessageProcessor();
            }
            ClientMessageDispatcherImpl dispatcherImpl = new ClientMessageDispatcherImpl(this
                                                                                         , socket, _synchronousMessageQueue, _asynchronousMessageQueue);
            string dispatcherName = "db4o client side message dispatcher for " + user;

            _messageDispatcher = dispatcherImpl;
            ThreadPool().Start(dispatcherName, dispatcherImpl);
        }
Пример #2
0
		private void StartDispatcherThread(Socket4Adapter socket, string user)
		{
			if (!_singleThreaded)
			{
				StartAsynchronousMessageProcessor();
			}
			ClientMessageDispatcherImpl dispatcherImpl = new ClientMessageDispatcherImpl(this
				, socket, _synchronousMessageQueue, _asynchronousMessageQueue);
			string dispatcherName = "db4o client side message dispatcher for " + user;
			_messageDispatcher = dispatcherImpl;
			ThreadPool().Start(dispatcherName, dispatcherImpl);
		}