/// <summary> /// Loads all the commits of an aggregate with the specified aggregate identifier. /// </summary> /// <param name="aggregateId">The aggregate identifier.</param> /// <returns></returns> public EventStream Load(IAggregateRootId aggregateId) { return(new EventStream(eventStoreStorage.Seek(aggregateId))); }
/// <summary> /// Loads all the commits of an aggregate with the specified aggregate identifier. /// </summary> /// <param name="aggregateId">The aggregate identifier.</param> /// <returns></returns> public EventStream Load(IAggregateRootId aggregateId, Func <IAggregateRootId, string> getBoundedContext) { return(new EventStream(eventStoreStorage.Seek(aggregateId))); }
/// <summary> /// Loads all the commits of an aggregate with the specified aggregate identifier. /// </summary> /// <param name="aggregateId">The aggregate identifier.</param> /// <returns></returns> public Task <EventStream> LoadAsync(IAggregateRootId aggregateId) { return(Task.FromResult(new EventStream(eventStoreStorage.Seek(aggregateId)))); }