public static Task ExecuteAsync(this IAsyncCommand command) { command.AssertNotNull(nameof(command)); if (command.Handler == null) { throw HandlerNotSettedException(); } return(command.Handler()); }
public static Task ExecuteAsync(this IAsyncCommand command) { command.AssertNotNull(nameof(command)); if (command.Handler == null) { throw HandlerNotSettedException(); } return(command.Handler()); }