public override int GetHashCode()
        {
            int hash = 1;

            hash ^= Headers.GetHashCode();
            hash ^= SetHeaders.GetHashCode();
            hash ^= deleteHeaders_.GetHashCode();
            if (Body.Length != 0)
            {
                hash ^= Body.GetHashCode();
            }
            if (Url.Length != 0)
            {
                hash ^= Url.GetHashCode();
            }
            hash ^= Params.GetHashCode();
            hash ^= AddParams.GetHashCode();
            hash ^= ExtendedParams.GetHashCode();
            hash ^= deleteParams_.GetHashCode();
            if (returnOverrides_ != null)
            {
                hash ^= ReturnOverrides.GetHashCode();
            }
            return(hash);
        }
 public bool Equals(MiniRequestObject other)
 {
     if (ReferenceEquals(other, null))
     {
         return(false);
     }
     if (ReferenceEquals(other, this))
     {
         return(true);
     }
     if (!Headers.Equals(other.Headers))
     {
         return(false);
     }
     if (!SetHeaders.Equals(other.SetHeaders))
     {
         return(false);
     }
     if (!deleteHeaders_.Equals(other.deleteHeaders_))
     {
         return(false);
     }
     if (Body != other.Body)
     {
         return(false);
     }
     if (Url != other.Url)
     {
         return(false);
     }
     if (!Params.Equals(other.Params))
     {
         return(false);
     }
     if (!AddParams.Equals(other.AddParams))
     {
         return(false);
     }
     if (!ExtendedParams.Equals(other.ExtendedParams))
     {
         return(false);
     }
     if (!deleteParams_.Equals(other.deleteParams_))
     {
         return(false);
     }
     if (!object.Equals(ReturnOverrides, other.ReturnOverrides))
     {
         return(false);
     }
     return(true);
 }
Example #3
0
 protected void Application_PreSendRequestHeaders(object sender, EventArgs e)
 {
     SetHeaders.Setheaders(Response);
 }