コード例 #1
0
        public void SetCookies(IRequestCookieCollection cookies)
        {
            var bungieCookies = cookies.Where(cookie => cookie.Key.StartsWith(BungieCookiePrefix))
                                .Select(cookie =>
            {
                var name = cookie.Key.Substring(BungieCookiePrefix.Length);
                return(name, cookie.Value);
            });

            _bungieCookies.Cookies = bungieCookies;
        }
 private static List <RaygunRequestMessage.Cookie> GetCookies(IRequestCookieCollection cookies, Func <string, bool> isCookieIgnored)
 {
     return(cookies.Where(c => !isCookieIgnored(c.Key)).Select(c => new RaygunRequestMessage.Cookie(c.Key, c.Value)).ToList());
 }
コード例 #3
-1
 private static List<RaygunRequestMessage.Cookie> GetCookies(IRequestCookieCollection cookies, Func<string, bool> isCookieIgnored)
 {
   return cookies.Where(c => !isCookieIgnored(c.Key)).Select(c => new RaygunRequestMessage.Cookie(c.Key, c.Value)).ToList();
 }