コード例 #1
0
 public static void RemoveManagedListener(IManagedOnApplicationPause behaviour)
 {
     AssertSingletonExists();
     Debug.Assert(behaviour != null,
                  "[ManagedBehaviourEngine] behaviour is null");
     pauseListeners.Remove(behaviour);
 }
コード例 #2
0
        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);
        }