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