Line data Source code
1 : #region Copyright
2 : // // -----------------------------------------------------------------------
3 : // // <copyright company="Chinchilla Software Limited">
4 : // // Copyright Chinchilla Software Limited. All rights reserved.
5 : // // </copyright>
6 : // // -----------------------------------------------------------------------
7 : #endregion
8 :
9 : using System;
10 : using Akka.Actor;
11 : using Cqrs.Domain;
12 :
13 : namespace Cqrs.Akka.Domain
14 : {
15 : /// <summary>
16 : /// A resolver for <see cref="IActorRef"/> instances of <see cref="IAggregateRoot{TAuthenticationToken}"/>.
17 : /// </summary>
18 : public interface IAkkaAggregateResolver
19 : {
20 : /// <summary>
21 : /// Resolves instances of <typeparamref name="TAggregate"/>.
22 : /// </summary>
23 1 : IActorRef ResolveActor<TAggregate, TAuthenticationToken>(Guid rsn)
24 : where TAggregate : IAggregateRoot<TAuthenticationToken>;
25 :
26 : /// <summary>
27 : /// Resolves instances of <typeparamref name="T"/>.
28 : /// </summary>
29 1 : IActorRef ResolveActor<T>();
30 : }
31 : }
|