예제 #1
0
 private void CookieSniffer_CookieSniffed(object sender, CookieSniffedEventArgs e)
 {
     Application.Current.Dispatcher.Invoke(() =>
     {
         if (SocialMedia == SocialMedia.VK)
         {
             if (
                 e.Cookie.Name.ToLower() == SocialMediaProvider.Providers.VK.Constants.SessionCookie.ToLower() &&
                 e.Cookie.Domain.Contains("vk.com")
                 )
             {
                 var value = e.Cookie.Value;
                 ProfileSignedIn?.Invoke(this, new ProfileSignedInEventArgs(SocialMedia, new { session = value }));
                 SocialMedia = null;
             }
         }
     });
 }
 private void ResourceRequestHandler_CookieSniffed(object sender, CookieSniffedEventArgs e)
 => CookieSniffed?.Invoke(this, e);
 private void CookieSniffer_CookieSniffedEventArgs(object sender, CookieSniffedEventArgs e)
 => CookieSniffed?.Invoke(this, e);