Beispiel #1
0
        public override object Execute(IDistributedRepository repo)
        {
            WriteEvent writeEvent = this.CopyAs <WriteEvent>();

            Commit(repo, writeEvent);
            Any?.Invoke(this, new OpertionEventArgs {
                WriteEvent = writeEvent
            });
            return(writeEvent);
        }
Beispiel #2
0
 protected void Commit(IDistributedRepository repo, WriteEvent writeEvent)
 {
     repo.Save(SaveOperation.For(writeEvent));
 }