/// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Path != null)
         {
             hashCode = hashCode * 59 + Path.GetHashCode();
         }
         if (AuthHttpNologin != null)
         {
             hashCode = hashCode * 59 + AuthHttpNologin.GetHashCode();
         }
         if (AuthHttpRealm != null)
         {
             hashCode = hashCode * 59 + AuthHttpRealm.GetHashCode();
         }
         if (AuthDefaultLoginpage != null)
         {
             hashCode = hashCode * 59 + AuthDefaultLoginpage.GetHashCode();
         }
         if (AuthCredForm != null)
         {
             hashCode = hashCode * 59 + AuthCredForm.GetHashCode();
         }
         if (AuthCredUtf8 != null)
         {
             hashCode = hashCode * 59 + AuthCredUtf8.GetHashCode();
         }
         return(hashCode);
     }
 }
示例#2
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (OsgiHttpWhiteboardContextSelect != null)
         {
             hashCode = hashCode * 59 + OsgiHttpWhiteboardContextSelect.GetHashCode();
         }
         if (OsgiHttpWhiteboardListener != null)
         {
             hashCode = hashCode * 59 + OsgiHttpWhiteboardListener.GetHashCode();
         }
         if (AuthSudoCookie != null)
         {
             hashCode = hashCode * 59 + AuthSudoCookie.GetHashCode();
         }
         if (AuthSudoParameter != null)
         {
             hashCode = hashCode * 59 + AuthSudoParameter.GetHashCode();
         }
         if (AuthAnnonymous != null)
         {
             hashCode = hashCode * 59 + AuthAnnonymous.GetHashCode();
         }
         if (SlingAuthRequirements != null)
         {
             hashCode = hashCode * 59 + SlingAuthRequirements.GetHashCode();
         }
         if (SlingAuthAnonymousUser != null)
         {
             hashCode = hashCode * 59 + SlingAuthAnonymousUser.GetHashCode();
         }
         if (SlingAuthAnonymousPassword != null)
         {
             hashCode = hashCode * 59 + SlingAuthAnonymousPassword.GetHashCode();
         }
         if (AuthHttp != null)
         {
             hashCode = hashCode * 59 + AuthHttp.GetHashCode();
         }
         if (AuthHttpRealm != null)
         {
             hashCode = hashCode * 59 + AuthHttpRealm.GetHashCode();
         }
         if (AuthUriSuffix != null)
         {
             hashCode = hashCode * 59 + AuthUriSuffix.GetHashCode();
         }
         return(hashCode);
     }
 }