Ejemplo n.º 1
0
        public void Handle(UserAssociatedWithIdentity @event)
        {
            using (var session = _documentStore.OpenSession())
            {
                var doc = session.Load <UserDocument>(RavenDb.GetId <UserDocument>(@event.AggregateId));
                doc.AccountAssociations.Add(new AccountAssociationDocument {
                    Identity = @event.Identity, Network = @event.Network
                });
                session.SaveChanges();

                _bus.PublishNotification(doc);
            }
        }
Ejemplo n.º 2
0
 private void Apply(UserAssociatedWithIdentity associatedWithIdentity)
 {
 }