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