public static void RemoveManagedListener(IManagedOnApplicationPause behaviour) { AssertSingletonExists(); Debug.Assert(behaviour != null, "[ManagedBehaviourEngine] behaviour is null"); pauseListeners.Remove(behaviour); }
public static void AddManagedListener(IManagedOnApplicationPause behaviour) { AssertSingletonExists(); Debug.Assert(!pauseListeners.Contains(behaviour), "[ManagedBehaviourEngine] Duplicate behaviour being subscribed!" + " Check your subscription logic, fool!"); Debug.Assert(behaviour != null, "[ManagedBehaviourEngine] behaviour is null"); pauseListeners.Add(behaviour); }