/// <summary>
 /// This instantiates a MiniWebServer if one is not already instantiated
 /// </summary>
 private void CheckMiniWebServer()
 {
     if (MWS == null)
     {
         MWS            = new MiniWebServer(new IPEndPoint(_AVR.device.InterfaceToHost, NetworkInfo.GetFreePort(50000, 65500, _AVR.device.InterfaceToHost)));
         MWS.OnReceive += new MiniWebServer.HTTPReceiveHandler(ReceiveSink);
     }
 }
Esempio n. 2
0
        private void Login()
        {
            FacebookClient client = new FacebookClient();

            client.AppId     = ClientId;
            client.AppSecret = ClientSecret;
            //PhotoUtils.Run(GenerateLoginUrl(client.AppId,"publish_actions,manage_pages").ToString());
            _miniWebServer = new MiniWebServer(SendResponse, Server);
            _miniWebServer.Run();
            PhotoUtils.Run(
                GenerateLoginUrl(client.AppId, "publish_actions,manage_pages,user_photos,publish_pages").ToString());
        }
 private void Login()
 {
     try
     {
         if (_client == null)
         {
             _client = new DropNetClient(AppKey, AppSecret);
             _client.GetToken();
         }
         var url = _client.BuildAuthorizeUrl(Server);
         _miniWebServer = new MiniWebServer(SendResponse, Server);
         _miniWebServer.Run();
         PhotoUtils.Run(url);
     }
     catch (Exception)
     {
         Log.Error("Unable to login");
     }
 }
Esempio n. 4
0
 /// <summary>
 /// This instantiates a MiniWebServer if one is not already instantiated
 /// </summary>
 private void CheckMiniWebServer()
 {
     if (MWS == null)
     {
         MWS = new MiniWebServer(new IPEndPoint(_AVR.device.InterfaceToHost, NetworkInfo.GetFreePort(50000, 65500, _AVR.device.InterfaceToHost)));
         MWS.OnReceive += new MiniWebServer.HTTPReceiveHandler(ReceiveSink);
     }
 }