Beispiel #1
0
        /// <summary>
        /// Initializes an event source's routing and recording behavior.
        /// </summary>
        protected AggregateRootEntity()
        {
            _recorder = new EventRecorder();
            _router   = new EventRouter();

            _expectedVersion = ExpectedVersion.NoStream;
        }
Beispiel #2
0
 internal void RegisterChild(ChildEntity childAggregate, out Action <object> raise, out EventRouter router)
 {
     Ensure.NotNull(childAggregate, nameof(childAggregate));
     raise  = Raise;
     router = Router;
 }