Example #1
0
        private async Task ExecuteConsoleCommandFileDownload(Options options)
        {
            var fileDownloadCommand = new FileDownloadCommand(options);
            await _mediator.Send(fileDownloadCommand);

            LogInformationMessage($"File \"{fileDownloadCommand.FilePath}\" has been downloaded to {fileDownloadCommand.DestinationPath}");
            _consolePrinter.PrintFileDownloadedSuccessful(fileDownloadCommand.FilePath);
        }