コード例 #1
0
ファイル: Web.cs プロジェクト: kallekauppinen/Frends.Web
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (int)Authentication;
         hashCode = (hashCode * 397) ^ (Username != null ? Username.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Password != null ? Password.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Token != null ? Token.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CertificateThumbprint != null ? CertificateThumbprint.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ConnectionTimeoutSeconds;
         hashCode = (hashCode * 397) ^ FollowRedirects.GetHashCode();
         hashCode = (hashCode * 397) ^ AllowInvalidCertificate.GetHashCode();
         hashCode = (hashCode * 397) ^ AllowInvalidResponseContentTypeCharSet.GetHashCode();
         hashCode = (hashCode * 397) ^ ThrowExceptionOnErrorResponse.GetHashCode();
         return(hashCode);
     }
 }
コード例 #2
0
ファイル: Web.cs プロジェクト: FrendsPlatform/Frends.Web
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (int)Authentication;
         hashCode = (hashCode * 397) ^ (Username != null ? Username.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Password != null ? Password.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Token != null ? Token.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ClientCertificateSource.GetHashCode();
         hashCode = (hashCode * 397) ^ (CertificateThumbprint != null ? CertificateThumbprint.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ClientCertificateInBase64 != null ? ClientCertificateInBase64.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ClientCertificateFilePath != null ? ClientCertificateFilePath.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ LoadEntireChainForCertificate.GetHashCode();
         hashCode = (hashCode * 397) ^ ConnectionTimeoutSeconds;
         hashCode = (hashCode * 397) ^ FollowRedirects.GetHashCode();
         hashCode = (hashCode * 397) ^ AllowInvalidCertificate.GetHashCode();
         hashCode = (hashCode * 397) ^ AllowInvalidResponseContentTypeCharSet.GetHashCode();
         hashCode = (hashCode * 397) ^ ThrowExceptionOnErrorResponse.GetHashCode();
         hashCode = (hashCode * 397) ^ AutomaticCookieHandling.GetHashCode();
         return(hashCode);
     }
 }