protected void OnRequireClose(NotifierViewModelEventArgs e) { var threadSafeHandler = Interlocked.CompareExchange(ref RequireClose, null, null); if (threadSafeHandler != null) { threadSafeHandler(this, e); } RequireCloseEvent.Raise(e); }
protected void OnRequireClose(NotifierViewModelEventArgs e) { var threadSafeHandler = Interlocked.CompareExchange(ref RequireClose, null, null); if (threadSafeHandler != null) threadSafeHandler(this, e); RequireCloseEvent.Raise(e); }