/// <summary> /// Clear notifications sequence. /// </summary> public void Clear() { if (currentNotify != null) { currentNotify.Return(); currentNotify = null; } notifySequence.ForEach(ReturnNotify); notifySequence.Clear(); }
void ReturnNotify(Notify notify) { notify.Return(); }