/// <summary> /// </summary> /// <returns>Docking station event</returns> public DockingStationEvent Execute() { Stopwatch stopwatch = Log.TimingBegin("MANUAL OPERATIONS CLEAR"); InstrumentManualOperationsClearEvent clearEvent = new InstrumentManualOperationsClearEvent(this); clearEvent.DockedInstrument = (ISC.iNet.DS.DomainModel.Instrument)Master.Instance.SwitchService.Instrument.Clone(); clearEvent.DockingStation = Master.Instance.ControllerWrapper.GetDockingStation(); using (InstrumentController instrumentController = Master.Instance.SwitchService.InstrumentController) { instrumentController.Initialize(); instrumentController.ClearManualGasOperations(); Log.Debug(Name + ": Manual gas operations cleared."); } // end-using Log.TimingEnd("MANUAL OPERATIONS CLEAR", stopwatch); return(clearEvent); }