clearIECache() public static méthode

public static clearIECache ( ) : void
Résultat void
Exemple #1
0
 private void wbTwitchAuth_Navigating(object sender, System.Windows.Navigation.NavigatingCancelEventArgs e)
 {
     Utils.clearIECache();
     if (e.Uri.Host.Trim() == "localhost")
     {
         if (_isStreamer)
         {
             Config.StreamerOAuthKey = Utils.GetTwitchAuthToken(e.Uri.AbsoluteUri);
         }
         else
         {
             Config.BotOAuthKey = Utils.GetTwitchAuthToken(e.Uri.AbsoluteUri);
         }
         this.Close();
     }
 }
Exemple #2
0
 private void wbTwitchAuth_Navigating(object sender, System.Windows.Forms.WebBrowserNavigatingEventArgs e)
 {
     Utils.clearIECache();
     MessageBox.Show(e.Url.AbsoluteUri);
     if (e.Url.Host.Trim() == "localhost")
     {
         if (_isStreamer)
         {
             Config.StreamerOAuthKey = "oauth:" + Utils.GetTwitchAuthToken(e.Url.AbsoluteUri);
         }
         else
         {
             Config.BotOAuthKey = "oauth:" + Utils.GetTwitchAuthToken(e.Url.AbsoluteUri);
         }
         this.Close();
     }
 }
Exemple #3
0
        public WindowAuthBrowser(bool isStreamer)
        {
            _isStreamer = isStreamer;
            InitializeComponent();

            Utils.clearIECache();
            Utils.InternetSetOption(IntPtr.Zero, 42, IntPtr.Zero, 0);
            Utils.SuppressWininetBehavior();

            if (_isStreamer)
            {
                wbTwitchAuth.Navigate(twitchAuthLinkStreamer);
            }
            else
            {
                wbTwitchAuth.Navigate(twitchAuthLinkBot);
            }
        }