public void UpdateAll(IEnumerable <User> users) { _serviceStorage.UpdateAll(users); MasterSlaveMessage <User> message = new MasterSlaveMessage <User> { Code = MessageCode.Update, Items = users }; SendMessages(MessageCode.Update, users); }
private void UpdateAll(IEnumerable <User> users) { _locker.EnterWriteLock(); try { _serviceStorage.UpdateAll(users); } finally { _locker.ExitWriteLock(); } }