private static async Task MainInner() { IConfigurationRoot configuration = CreateConfiguration(); var section = configuration.GetSection("jira"); // create a connection to JIRA using the Rest client var jiraUrl = section.GetValue <string>("url"); var username = section.GetValue <string>("userName"); var password = section.GetValue <string>("password"); var client = new JiraClient(jiraUrl, username, password); DateTime lastUpdate = DateTime.Now.AddYears(-1); using (JiraLocalCache jiraLocalCache = new JiraLocalCache(new SqliteJiraLocalCacheRepository(@"../../../../Data/issuesCache.db"))) { await jiraLocalCache.Update(client, lastUpdate, "AC"); } Console.WriteLine("Finished"); }
public TasksSourceJiraCacheAdapter(SqliteJiraLocalCacheRepository sqliteJiraLocalCacheRepository) { _cache = new JiraLocalCache(sqliteJiraLocalCacheRepository); }