void FireBeforeInstructionFetchEvent() { var eventArgs = new BeforeInstructionFetchEventArgs(stopper: this); if (BeforeInstructionFetch != null) { BeforeInstructionFetch(this, eventArgs); } executionContext.LocalUserStateFromPreviousEvent = eventArgs.LocalUserState; }
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; }