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 :
12 : namespace Cqrs.Commands
13 : {
14 : /// <summary>
15 : /// Sends an <see cref="ICommand{TAuthenticationToken}"/>
16 : /// </summary>
17 : /// <typeparam name="TAuthenticationToken"></typeparam>
18 : [Obsolete("Replaced by ICommandPublisher<TAuthenticationToken>")]
19 : public interface ICommandSender<TAuthenticationToken> : ICommandPublisher<TAuthenticationToken>
20 : {
21 : [Obsolete("Replaced by ICommandPublisher<TAuthenticationToken>.Publish(TCommand)")]
22 0 : void Send<TCommand>(TCommand command)
23 : where TCommand : ICommand<TAuthenticationToken>;
24 :
25 : [Obsolete("Replaced by ICommandPublisher<TAuthenticationToken>.Publish(IEnumerable<TCommand>)")]
26 0 : void Send<TCommand>(IEnumerable<TCommand> commands)
27 : where TCommand : ICommand<TAuthenticationToken>;
28 : }
29 : }
|