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="ISaga{TAuthenticationToken}"/>.
17 : /// </summary>
18 : public interface IAkkaSagaResolver
19 : {
20 : /// <summary>
21 : /// Resolves instances of <typeparamref name="TSaga"/>.
22 : /// </summary>
23 1 : IActorRef ResolveActor<TSaga, TAuthenticationToken>(Guid rsn)
24 : where TSaga : ISaga<TAuthenticationToken>;
25 :
26 : /// <summary>
27 : /// Resolves instances of <typeparamref name="T"/>.
28 : /// </summary>
29 1 : IActorRef ResolveActor<T>();
30 : }
31 : }
|