Beispiel #1
0
        private static void LoadSiteSettings()
        {
            if (string.IsNullOrEmpty(Token))
            {
                siteSettings = null;
                return;
            }

            aEvent = new AutoResetEvent(false);
            FourSquare service = new FourSquare();

            service.SiteSettingsResult += new SiteSettingsEventHandler(service_SiteSettingsResult);
            service.Error += new ErrorEventHandler(service_Error);
            service.GetSiteSettings();
            aEvent.WaitOne(5000, false);
        }
 public NotificationsController()
 {
     Service = new MySquare.Service.FourSquare();
     Service.CheckInsResult += new MySquare.FourSquare.CheckInsEventHandler(Service_CheckInsResult);
     Service.Error          += new ErrorEventHandler(Service_Error);
 }