public EventDeferral GetDeferral() { lock (_eventDeferralLock) { return(_eventDeferral ?? (_eventDeferral = new EventDeferral())); } }
internal EventDeferral GetCurrentDeferralAndReset() { lock (_eventDeferralLock) { var eventDeferral = _eventDeferral; _eventDeferral = null; return(eventDeferral); } }