Exemplo n.º 1
0
 public void EndOfRequest(MonoWorkerRequest mwr)
 {
     try {
         mwr.CloseConnection();
     } catch {
     } finally {
         BaseRequestBroker brb = requestBroker as BaseRequestBroker;
         if (brb != null)
         {
             brb.UnregisterRequest(mwr.RequestId);
         }
     }
 }
Exemplo n.º 2
0
        void OnUnregisterRequest(object sender, UnregisterRequestEventArgs args)
        {
            BaseRequestBroker broker = sender as BaseRequestBroker;

            if (broker != null)
            {
                broker.UnregisterRequestEvent -= new UnregisterRequestEventHandler(OnUnregisterRequest);
            }

            if (requestId == -1 || requestId != args.RequestId)
            {
                return;
            }

            requestId = -1;
        }