public DownloadManager(IReceiptStore receiptStore, IUtil util, IStorage storage, IURLFetcher fetcher, ILogger logger, BillingPlatform platform, string appSecret) { this.receiptStore = receiptStore; this.util = util; this.storage = storage; this.fetcher = fetcher; this.logger = logger; this.platform = platform; this.appSecret = appSecret; this.scheduledDownloads = deserialiseDownloads (); this.workQueue = new List<string> (scheduledDownloads); this.persistentDataPath = util.persistentDataPath; }
public DownloadManager(IReceiptStore receiptStore, IUtil util, IStorage storage, IURLFetcher fetcher, ILogger logger, BillingPlatform platform, string appSecret) { this.receiptStore = receiptStore; this.util = util; this.storage = storage; this.fetcher = fetcher; this.logger = logger; this.platform = platform; this.appSecret = appSecret; this.scheduledDownloads = deserialiseDownloads(); this.persistentDataPath = util.persistentDataPath; Thread t = new Thread(DownloadFlusher); t.IsBackground = true; t.Start(); }