/// <summary> /// Initializes a new instance of the <see cref="ProcessSwitcher" /> class. /// </summary> /// <param name="stateCache">The state cache.</param> /// <param name="process">The process.</param> public ProcessSwitcher(StateCache stateCache, Process process) { stateCache.SwitchProcess(process); }
/// <summary> /// Initializes a new instance of the <see cref="StackFrameSwitcher" /> class. /// </summary> /// <param name="stateCache">The state cache.</param> /// <param name="stackFrame">The stack frame.</param> public StackFrameSwitcher(StateCache stateCache, StackFrame stackFrame) { stateCache.SwitchStackFrame(stackFrame); }
/// <summary> /// Initializes a new instance of the <see cref="ThreadSwitcher" /> class. /// </summary> /// <param name="stateCache">The state cache.</param> /// <param name="thread">The thread.</param> public ThreadSwitcher(StateCache stateCache, Thread thread) { stateCache.SwitchThread(thread); }