/// <summary> /// Initializes an event source's routing and recording behavior. /// </summary> protected AggregateRootEntity() { _recorder = new EventRecorder(); _router = new EventRouter(); _expectedVersion = ExpectedVersion.NoStream; }
internal void RegisterChild(ChildEntity childAggregate, out Action <object> raise, out EventRouter router) { Ensure.NotNull(childAggregate, nameof(childAggregate)); raise = Raise; router = Router; }