static Notifications() { _api = new GitHubApi("0c8114842aa3da6959e3","1e2052e4699998bad9d9fe61160e35048e103240"); _api.SetAuthenticationToken (SettingsStore.GetPat ()); /*_timer = NSTimer.CreateRepeatingTimer (new TimeSpan (0, 1, 0), delegate { DoNotificationCheck(); Console.WriteLine("Timer Ran"); });*/ _timer = new Timer (60 * 1000); _timer.Elapsed += delegate { DoNotificationCheck (); Console.WriteLine ("Timer Ran"); }; _timer.Start(); }
static Notifications() { _api = new GitHubApi("0c8114842aa3da6959e3", "1e2052e4699998bad9d9fe61160e35048e103240"); _api.SetAuthenticationToken(SettingsStore.GetPat()); /*_timer = NSTimer.CreateRepeatingTimer (new TimeSpan (0, 1, 0), delegate { * DoNotificationCheck(); * Console.WriteLine("Timer Ran"); * });*/ _timer = new Timer(60 * 1000); _timer.Elapsed += delegate { DoNotificationCheck(); Console.WriteLine("Timer Ran"); }; _timer.Start(); }
public static void UpdateApiToken() { _api.SetAuthenticationToken(SettingsStore.GetPat()); }