protected VBoxBridgeBase() { this.mWorkQueue = new SerialWorkQueue("VBoxBridge") { ExceptionHandler = new SerialWorkQueue.ExceptionHandlerCallback(this.HandleWorkQueueException) }; this.mWorkQueue.Start(); }
public StateMachine(string vmName) { this.mVmName = vmName; this.mWorkQueue = new SerialWorkQueue(nameof(StateMachine)) { ExceptionHandler = new SerialWorkQueue.ExceptionHandlerCallback(this.HandleWorkQueueException) }; this.mWorkQueue.Start(); this.mTerminationEvent = new EventWaitHandle(false, EventResetMode.ManualReset); this.mState = StateMachine.State.Init; }