Line data Source code
1 : #region Copyright
2 : // // -----------------------------------------------------------------------
3 : // // <copyright company="cdmdotnet Limited">
4 : // // Copyright cdmdotnet Limited. All rights reserved.
5 : // // </copyright>
6 : // // -----------------------------------------------------------------------
7 : #endregion
8 :
9 : using System;
10 : using System.Collections.Generic;
11 : using Cqrs.Events;
12 :
13 : namespace Cqrs.Domain
14 : {
15 : public interface IRepository<TAuthenticationToken>
16 : {
17 0 : void Save<TAggregateRoot>(TAggregateRoot aggregate, int? expectedVersion = null)
18 : where TAggregateRoot : IAggregateRoot<TAuthenticationToken>;
19 :
20 0 : TAggregateRoot Get<TAggregateRoot>(Guid aggregateId, IList<IEvent<TAuthenticationToken>> events = null)
21 : where TAggregateRoot : IAggregateRoot<TAuthenticationToken>;
22 : }
23 : }
|