/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> public void Dispose() { foreach (var actionRegistered in _actionRegistereds) { _invocationList.RemoveAction(actionRegistered.Key, actionRegistered.Value); } _actionRegistereds = null; _invocationList = null; }
public MediatorRegistration(MessageToActionMap invocationList, IEnumerable <KeyValuePair <string, WeakAction> > actionRegistereds) { _invocationList = invocationList; _actionRegistereds = actionRegistereds; }