Esempio n. 1
0
        private void RestoreServerCommand(RestoreCommand command)
        {
            //TODO тоже надо будет выпилить
            command.CountSends++;

            _distributorNet.ConnectToWriter(command.RestoreServer);
            _modelOfDbWriters.ServerAvailable(command.RestoreServer);

            if (command.CountSends < 2)
            {
                var list = _modelOfAnotherDistributors.GetDistributorList();
                list.ForEach(x => _distributorNet.SendToDistributor(x, command));
            }
        }