public void Handle(CelebrateUserBirthday command) { Action act = () => { var user = _store.Load<User>(command.Id).Result; user.Birthday(); _store.Commit(user).Wait(); }; PerformWithRetry(act); }
public void Handle(CelebrateUserBirthday command) { Action act = () => { //Console.WriteLine("Celebrating user birthday."); var user = _store.Load<User>(command.Id).Result; user.Birthday(); _store.Commit(user).Wait(); }; PerformWithRetry(act); }