/// <summary> /// Unsubscribes the listener. /// </summary> /// <param name="subscriberEvent">The subscriber event.</param> public static void UnsubscribeListener(IMessengerEvent subscriberEvent) { subscriberEvent.MessengerEvent -= reportMessageToConsole; }
/// <summary> /// Unsubscribes the listener from the provided object. /// </summary> /// <param name="subscriberEvent"></param> /// <remarks></remarks> public static void UnsubscribeListenerToMessageBox(IMessengerEvent subscriberEvent) { subscriberEvent.MessengerEvent -= reportMessengerEventToMessengerEventBox; }