public Installer( AppSourceConfig appSourceConfig, MtgjsonSourceConfig mtgjsonSourceConfig, CardSearcher cardSearcher, KeywordSearcher keywordSearcher) { _appSourceConfig = appSourceConfig; _mtgjsonSourceConfig = mtgjsonSourceConfig; _updateAppDir = AppDir.Update.AddPath("app"); _appOnlineSignatureFile = Path.Combine(_updateAppDir, Signer.SignaturesFile); _appDownloadedSignatureFile = AppDir.Update.AddPath(Signer.SignaturesFile); _appInstalledVersionFile = AppDir.Update.AddPath("version.txt"); AppDownloadedSignature = getAppDownloadedSignature(); _webClient = new WebClientBase(); _megatools = new Megatools(); _protectedFiles = new HashSet <string>(StringComparer.InvariantCultureIgnoreCase) { AppDir.GeneralConfigXml, AppDir.DisplayConfigXml, cardSearcher.IndexDirectory.AddPath("*.*"), cardSearcher.Spellchecker.IndexDirectory.AddPath("*.*"), keywordSearcher.IndexDirectory.AddPath("*.*") }; }
[UsedImplicitly] // by ninject public ImageDownloadProgressReader(ImageSourcesConfig config, Megatools megatools) { _config = config; _megatools = megatools; }
public ImageDownloadProgressReader(ImageSourcesConfig config) { _config = config; _megatools = new Megatools(); }
public ImageDownloader(CardRepository repository, Megatools megatools) { _repository = repository; _megatools = megatools; }
public ImageDownloader(CardRepository repository) { _repository = repository; _megatools = new Megatools(); }
public MegaDownloader(Megatools megatools, object syncOutput) { _megatools = megatools; _syncOutput = syncOutput; }