示例#1
0
 /// <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);
 }
示例#2
0
 /// <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);
 }
示例#3
0
 /// <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);
 }