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();
 }
示例#2
0
        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();
        }
示例#3
0
 public static void UpdateApiToken()
 {
     _api.SetAuthenticationToken(SettingsStore.GetPat());
 }