コード例 #1
0
        void FireBeforeInstructionFetchEvent()
        {
            var eventArgs = new BeforeInstructionFetchEventArgs(stopper: this);

            if (BeforeInstructionFetch != null)
            {
                BeforeInstructionFetch(this, eventArgs);
            }

            executionContext.LocalUserStateFromPreviousEvent = eventArgs.LocalUserState;
        }
コード例 #2
0
        void FireBeforeInstructionFetchEvent()
        {
            var eventArgs = new BeforeInstructionFetchEventArgs(stopper: this);

            if (BeforeInstructionFetch != null)
            {
                executionContext.ExecutingBeforeInstructionEvent = true;
                try {
                    BeforeInstructionFetch(this, eventArgs);
                }
                finally {
                    executionContext.ExecutingBeforeInstructionEvent = false;
                }
            }

            executionContext.LocalUserStateFromPreviousEvent = eventArgs.LocalUserState;
        }