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()); }
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(); }