Skip to content

Instantly share code, notes, and snippets.

@vmandic
Last active October 20, 2018 09:02
Show Gist options
  • Select an option

  • Save vmandic/e05e62aaeca404a5bcd62ad64c9120c5 to your computer and use it in GitHub Desktop.

Select an option

Save vmandic/e05e62aaeca404a5bcd62ad64c9120c5 to your computer and use it in GitHub Desktop.
meds-processor, p2, s3
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