Exemplo n.º 1
0
        public void CreateCookie(H2NBinaryWriter writer, HelloAttempt attempt, byte[] tag, string queryUrl)
        {
            var cookie = attempt.Cookie;

            if (cookie == null)
            {
                cookie = new Cookie(this, tag, queryUrl);
                _cookies[cookie.Value.BytesToString()] = cookie;
                attempt.Cookie = cookie;
            }
            writer.Write(CookieComputing.COOKIE_SIZE);
            writer.Write(cookie.Value);
        }
Exemplo n.º 2
0
 public void CreateCookie(H2NBinaryWriter writer, HelloAttempt attempt, byte[] tag, string queryUrl)
 {
     var cookie = attempt.Cookie;
     if (cookie == null)
     {
         cookie = new Cookie(this,tag, queryUrl);
         _cookies[cookie.Value.BytesToString()] = cookie;
         attempt.Cookie = cookie;
     }
     writer.Write(CookieComputing.COOKIE_SIZE);
     writer.Write(cookie.Value);
 }