Пример #1
0
        protected override Task ConfigureCookieClient(ISiteHttpClient client, ILogin login)
        {
            var baseLogin = (BaseLogin)login;

            if (!string.IsNullOrWhiteSpace(baseLogin.UserId) && !client.GetCookies().Any(c => c.Name == "dle_user_id"))
            {
                client.AddCookie("dle_user_id", baseLogin.UserId);
                client.AddCookie("dle_password", baseLogin.PasswordHash);
            }

            return(base.ConfigureCookieClient(client, login));
        }
Пример #2
0
 protected override Task ConfigureCookieClient(ISiteHttpClient client, ILogin login)
 {
     client.AddCookie("ageRestrict", "40");
     return(base.ConfigureCookieClient(client, login));
 }
Пример #3
0
 protected override Task ConfigureCookieClient(ISiteHttpClient client, ILogin login)
 {
     client.AddCookie(GroupleParser.CookieKey, "true");
     return(base.ConfigureCookieClient(client, login));
 }