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 : namespace Cqrs.Commands
10 : {
11 : /// <summary>
12 : /// Validates an <see cref="ICommand{TAuthenticationToken}"/> on its own merits.
13 : /// </summary>
14 : public interface ICommandValidator<TAuthenticationToken, in TCommand>
15 : where TCommand : ICommand<TAuthenticationToken>
16 : {
17 : /// <summary>
18 : /// Validates the provided <param name="command" /> on its own merits.
19 : /// </summary>
20 1 : bool IsCommandValid(TCommand command);
21 : }
22 : }
|