Ejemplo n.º 1
0
 private void InitPosServices(IReactiveDeliveryClient reactiveDeliveryClient, Action showWnd, IShellContainerVm vm,
                              ConnectionInfoResponse response)
 {
     try
     {
         PosService.DeletePosFoldersDataAndNewDataIfPosIsDown();
         SyncPosFiles.GetUnsyncFiles(reactiveDeliveryClient, showWnd, vm, response);
     }
     catch (Exception ex)
     {
         Log.Error("Error al iniciar los servicios de POS: ", ex);
     }
 }
Ejemplo n.º 2
0
        private async Task <Unit> OnReloadPos()
        {
            await Task.Run(() =>
            {
                if (!PosService.DeletePosFoldersDataAndNewDataIfPosIsDown())
                {
                    ShowPosApp();
                    return;
                }
                ReloadPosAction.SafeExecuteAction();
            });

            return(new Unit());
        }
Ejemplo n.º 3
0
        private async Task <Unit> OnRestartPos()
        {
            await Task.Run(() =>
            {
                ProcessExt.ForceKillProcess(SettingsData.AlohaIber.Replace(SettingsData.Constants.EXTENSION_EXE, String.Empty));

                if (!PosService.DeletePosFoldersDataAndNewDataIfPosIsDown())
                {
                    ShowPosApp();
                    return;
                }
                ReloadPosAction.SafeExecuteAction();
            });

            return(new Unit());
        }