Exemplo n.º 1
0
        void FireBeforeInstructionFetchEvent()
        {
            var eventArgs = new BeforeInstructionFetchEventArgs(stopper: this);

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

            executionContext.LocalUserStateFromPreviousEvent = eventArgs.LocalUserState;
        }
Exemplo n.º 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;
        }