コード例 #1
0
		private void StoreLink(VisitorLoggedIn loginInfo)
		{
			using (var session = _store.OpenSession())
			{
				session.Store(new UserLogin
								{
									Id = loginInfo.AggregateId,
									ClaimedIdentifier = loginInfo.ClaimedIdentifier
								});
				session.SaveChanges();
			}
		}
コード例 #2
0
		private void Apply(VisitorLoggedIn @event)
		{
			// We don't have to store any internal state for this event
		}