コード例 #1
0
        protected override void SendPriority(int eventID, params object[] args)
        {
            #region Require

            if (!IsInitialized)
            {
                throw new InvalidOperationException();
            }
            else if (IsDisposed)
            {
                throw new ObjectDisposedException("ActiveStateMachine");
            }

            #endregion

            queue.PostPriority(delegate(object state)
            {
                Dispatch(eventID, args);
            }, null);
        }