Last active
October 20, 2018 09:02
-
-
Save vmandic/e05e62aaeca404a5bcd62ad64c9120c5 to your computer and use it in GitHub Desktop.
meds-processor, p2, s3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Net.Http; | |
| using System.Threading.Tasks; | |
| using MedsProcessor.Common.Models; | |
| using static MedsProcessor.Common.Constants; | |
| namespace MedsProcessor.Downloader | |
| { | |
| public class HzzoExcelDownloader | |
| { | |
| readonly string _downloadDirPath; | |
| readonly IHttpClientFactory _httpCliFact; | |
| public HzzoExcelDownloader(IHttpClientFactory httpCliFact, AppPathsInfo appPathsInfo) | |
| { | |
| this._httpCliFact = httpCliFact; | |
| this._downloadDirPath = Path.Combine(appPathsInfo.ApplicationRootPath, DOWNLOAD_DIR); | |
| if (!Directory.Exists(_downloadDirPath)) | |
| Directory.CreateDirectory(_downloadDirPath); | |
| } | |
| public async Task Run(ISet<HzzoMedsDownloadDto> meds) | |
| { | |
| // TODO: implement | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment