From 5d3037cf01e814733fe029c724f665eccfc43c4a Mon Sep 17 00:00:00 2001 From: James Woodley Date: Sun, 21 Jun 2020 12:20:52 +0100 Subject: [PATCH] Use InvariantException as the aggregate type --- Command/ICommandValidator.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Command/ICommandValidator.cs b/Command/ICommandValidator.cs index 5762ead..4229f90 100644 --- a/Command/ICommandValidator.cs +++ b/Command/ICommandValidator.cs @@ -1,4 +1,5 @@ -using System.Threading; +using System.Collections.Generic; +using System.Threading; using System.Threading.Tasks; using LightestNight.System.Domain.Exceptions; @@ -12,6 +13,6 @@ public interface ICommandValidator /// The command to validate /// Any to use to marshal the request /// An empty collection if no validation errors are found, or a collection of - Task Validate(TCommand command, CancellationToken cancellationToken); + Task> Validate(TCommand command, CancellationToken cancellationToken); } } \ No newline at end of file