コード例 #1
0
		public void Handle(CelebrateUserBirthday command)
		{
			Action act = () =>
			{
				var user = _store.Load<User>(command.Id).Result;
				user.Birthday();
				_store.Commit(user).Wait();
			};

			PerformWithRetry(act);
		}
コード例 #2
0
		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);
		}