CQRS.NET  2.2
A lightweight enterprise framework to write CQRS, event-sourced and micro-service applications in hybrid multi-datacentre, on-premise and Azure environments.
Cqrs.Domain.IAggregateRepository< TAuthenticationToken > Interface Template Reference

Provides basic repository methods for operations with instances of IAggregateRoot<TAuthenticationToken>. More...

+ Inheritance diagram for Cqrs.Domain.IAggregateRepository< TAuthenticationToken >:

Public Member Functions

void Save< TAggregateRoot > (TAggregateRoot aggregate, int? expectedVersion=null)
 Save and persist the provided aggregate , optionally providing the version number the IAggregateRoot<TAuthenticationToken> is expected to be at. More...
 
TAggregateRoot Get< TAggregateRoot > (Guid aggregateId, IList< IEvent< TAuthenticationToken >> events=null)
 Retrieves an IAggregateRoot<TAuthenticationToken> of type TAggregateRoot . More...
 
TAggregateRoot GetToVersion< TAggregateRoot > (Guid aggregateId, int version, IList< IEvent< TAuthenticationToken >> events=null)
 Retrieves an IAggregateRoot<TAuthenticationToken> of type TAggregateRoot up to and including the provided version . More...
 
TAggregateRoot GetToDate< TAggregateRoot > (Guid aggregateId, DateTime versionedDate, IList< IEvent< TAuthenticationToken >> events=null)
 Retrieves an IAggregateRoot<TAuthenticationToken> of type TAggregateRoot up to and including the provided versionedDate . More...
 

Detailed Description

Provides basic repository methods for operations with instances of IAggregateRoot<TAuthenticationToken>.

Template Parameters
TAuthenticationTokenThe Type of authentication token.