コード例 #1
0
		public void AddPersistentListener(TestityAction call, TestityEventCallState callState)
		{
			int persistentEventCount = base.GetPersistentEventCount();
			base.AddPersistentListener();
			this.RegisterPersistentListener(persistentEventCount, call);
			base.SetPersistentListenerState(persistentEventCount, callState);
		}
コード例 #2
0
        public void AddPersistentListener(TestityAction call, TestityEventCallState callState)
        {
            int persistentEventCount = base.GetPersistentEventCount();

            base.AddPersistentListener();
            this.RegisterPersistentListener(persistentEventCount, call);
            base.SetPersistentListenerState(persistentEventCount, callState);
        }
コード例 #3
0
        /// <summary>
        ///   <para>Modify the execution state of a persistent listener.</para>
        /// </summary>
        /// <param name="index">Index of the listener to query.</param>
        /// <param name="state">State to set.</param>
        public void SetPersistentListenerState(int index, TestityEventCallState state)
        {
            TestityPersistentCall listener = this.m_PersistentCalls.GetListener(index);

            if (listener != null)
            {
                listener.callState = state;
            }
            this.DirtyPersistentCalls();
        }