public void ResetUik(ResetSoftReason reason) { SynchronizationEnabled = false; if (IsRemoteScannerConnected) { EnablePing(false); RemoteScanner.ResetSoft(reason, true, true); } ((IScannerInteractionChannel)this).ResetSoft(reason, false, true); }
public void ResetSoft(ResetSoftReason reason, bool isRemoteScannerInitiator, bool needRestartApp) { SafeCall <object>( () => { _interactionChannel.ResetSoft(reason, isRemoteScannerInitiator, needRestartApp); return(null); }, _commonCallProperties, null); }
void IScannerInteractionChannel.ResetSoft( ResetSoftReason reason, bool isRemoteScannerInitiator, bool needRestartApp) { var resetSoftParams = new ResetSoftParams(reason, isRemoteScannerInitiator, needRestartApp); if (isRemoteScannerInitiator) { ThreadUtils.StartBackgroundThread(ResetSoftInternal, resetSoftParams); } else { ResetSoftInternal(resetSoftParams); } }
public void ResetSoft(ResetSoftReason reason, bool isRemoteScannerInitiator, bool needRestartApp) { _localScannerChannel.ResetSoft(reason, isRemoteScannerInitiator, needRestartApp); }
void IScannerInteractionChannel.ResetSoft( ResetSoftReason reason, bool isRemoteScannerInitiator, bool needRestartApp) { var resetSoftParams = new ResetSoftParams(reason, isRemoteScannerInitiator, needRestartApp); if (isRemoteScannerInitiator) ThreadUtils.StartBackgroundThread(ResetSoftInternal, resetSoftParams); else ResetSoftInternal(resetSoftParams); }
public ResetSoftParams(ResetSoftReason reason, bool isRemoteScannerInitiator, bool needRestartApp) { Reason = reason; IsRemoteScannerInitiator = isRemoteScannerInitiator; NeedRestartApp = needRestartApp; }