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