예제 #1
0
파일: IpcAccessor.cs 프로젝트: Mixi59/Stump
        protected override void ProcessAnswer(IIPCRequest request, IPCMessage answer)
        {
            if (request.TimedOut)
            {
                logger.Warn("Message {0} already timed out, message ignored", request.RequestMessage.GetType());
                return;
            }

            request.ProcessMessage(answer);
        }
예제 #2
0
        protected override void ProcessAnswer(IIPCRequest request, IPCMessage answer)
        {
            if (request.TimedOut)
            {
                logger.Warn("Message {0} already timed out, message ignored", request.RequestMessage.GetType());
                return;
            }

            if (request.TimeoutTimer != null)
            {
                request.TimeoutTimer.Stop();
                TaskPool.RemoveTimer(request.TimeoutTimer);
            }

            request.ProcessMessage(answer);
        }
예제 #3
0
 private void RequestTimedOut(IIPCRequest request)
 {
     request.ProcessMessage(new IPCErrorTimeoutMessage(string.Format("Request {0} timed out", request.RequestMessage.GetType())));
 }
예제 #4
0
 protected override void ProcessAnswer(IIPCRequest request, IPCMessage answer)
 {
     request.TimeoutTimer.Stop();
     AuthServer.Instance.IOTaskPool.AddTimer(request.TimeoutTimer);
     request.ProcessMessage(answer);
 }
예제 #5
0
 protected override void ProcessAnswer(IIPCRequest request, IPCMessage answer)
 {
     request.TimeoutTimer.Stop();
     this.TaskPool.RemoveTimer(request.TimeoutTimer);
     request.ProcessMessage(answer);
 }