private void CheckRestore(AsyncData data) { var map = _modelOfDbWriters.GetAllServers2(); map.ForEach(x => { var result = _distributorNet.SendToWriter(x, new IsRestoredCommand()); if (result is IsRestoredResult && ((IsRestoredResult)result).IsRestored) { _modelOfDbWriters.ServerIsRestored(x); } }); }