예제 #1
0
        public static Task ExecuteAsync(this IAsyncCommand command)
        {
            command.AssertNotNull(nameof(command));

            if (command.Handler == null)
            {
                throw HandlerNotSettedException();
            }

            return(command.Handler());
        }