Ejemplo n.º 1
0
        private void NoAnswerCallback(AsyncData async)
        {
            _asyncTaskModule.StopTask(AsyncTasksNames.RestoreRemote);

            if (async.IsLast())
            {
                AddServerToFailed(_remoteServer);
                StartNextServer();
                return;
            }

            var ret = WriterNet.SendToWriter(_remoteServer,
                                             new RestoreCommandWithData(_local[0].ServerId,
                                                                        _local.ToList(), _isModelUpdated, _tableName));

            if (ret is FailNetResult)
            {
                AddServerToFailed(_remoteServer);
                StartNextServer();
            }
            else
            {
                _asyncTaskModule.StartTask(AsyncTasksNames.RestoreRemote);
            }
        }