示例#1
0
 public IDispatchObserver GetDispatchObserver(Current current, int requestId, int s)
 {
     lock (_mutex)
     {
         if (dispatchObserver == null)
         {
             dispatchObserver = new DispatchObserver();
             dispatchObserver.Reset();
         }
         return(dispatchObserver);
     }
 }
示例#2
0
 GetDispatchObserver(Current current, int s)
 {
     lock (this)
     {
         if (dispatchObserver == null)
         {
             dispatchObserver = new DispatchObserver();
             dispatchObserver.reset();
         }
         return(dispatchObserver);
     }
 }