public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = SubscriptionId.GetHashCode();
         hashCode = (hashCode * 397) ^ (TenantId != null ? TenantId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ResourceGroup != null ? ResourceGroup.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (WebApp != null ? WebApp.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Hosts != null ? Hosts.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Email != null ? Email.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ClientId.GetHashCode();
         hashCode = (hashCode * 397) ^ (ClientSecret != null ? ClientSecret.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ServicePlanResourceGroup != null ? ServicePlanResourceGroup.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SiteSlotName != null ? SiteSlotName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ UseIpBasedSsl.GetHashCode();
         hashCode = (hashCode * 397) ^ RsaKeyLength;
         hashCode = (hashCode * 397) ^ (AcmeBaseUri != null ? AcmeBaseUri.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ RenewXNumberOfDaysBeforeExpiration;
         hashCode = (hashCode * 397) ^ (AuthenticationUri != null ? AuthenticationUri.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (AzureTokenAudience != null ? AzureTokenAudience.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (AzureManagementEndpoint != null ? AzureManagementEndpoint.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (AzureDefaultWebsiteDomainName != null ? AzureDefaultWebsiteDomainName.GetHashCode() : 0);
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     return(Username.GetHashCode() ^
            Password.GetHashCode() ^
            ClientId.GetHashCode() ^
            ClientSecret.GetHashCode() ^
            UserAgent.GetHashCode());
 }
Example #3
0
        /// <summary>
        /// Retrieves the hash code for the credential.
        /// </summary>
        ///
        /// <returns>
        /// The hash code for the credential.
        /// </returns>
        public override int GetHashCode()
        {
            if (string.IsNullOrWhiteSpace(ClientId) || string.IsNullOrWhiteSpace(ClientSecret))
            {
                return(base.GetHashCode());
            }

            return(unchecked (ClientId.GetHashCode() ^ ClientSecret.GetHashCode()));
        }
Example #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (IdentityServer != null ? IdentityServer.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ClientScope != null ? ClientScope.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ClientSecret != null ? ClientSecret.GetHashCode() : 0);
         return(hashCode);
     }
 }
Example #5
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (Authority != null ? Authority.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ClientId != null ? ClientId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ClientSecret != null ? ClientSecret.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Resource != null ? Resource.GetHashCode() : 0);
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            int hashCode = -994318680;

            if (ClientId != null)
            {
                hashCode += ClientId.GetHashCode();
            }

            if (ClientSecret != null)
            {
                hashCode += ClientSecret.GetHashCode();
            }

            if (Code != null)
            {
                hashCode += Code.GetHashCode();
            }

            if (RedirectUri != null)
            {
                hashCode += RedirectUri.GetHashCode();
            }

            if (GrantType != null)
            {
                hashCode += GrantType.GetHashCode();
            }

            if (RefreshToken != null)
            {
                hashCode += RefreshToken.GetHashCode();
            }

            if (MigrationToken != null)
            {
                hashCode += MigrationToken.GetHashCode();
            }

            if (Scopes != null)
            {
                hashCode += Scopes.GetHashCode();
            }

            if (ShortLived != null)
            {
                hashCode += ShortLived.GetHashCode();
            }

            return(hashCode);
        }
Example #7
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = SubscriptionId.GetHashCode();
         hashCode = (hashCode * 397) ^ (TenantId != null ? TenantId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ResourceGroup != null ? ResourceGroup.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (WebApp != null ? WebApp.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Hosts != null ? Hosts.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Email != null ? Email.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ClientId.GetHashCode();
         hashCode = (hashCode * 397) ^ (ClientSecret != null ? ClientSecret.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ UseIpBasedSsl.GetHashCode();
         hashCode = (hashCode * 397) ^ RsaKeyLength;
         hashCode = (hashCode * 397) ^ (AcmeBaseUri != null ? AcmeBaseUri.GetHashCode() : 0);
         return(hashCode);
     }
 }
Example #8
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (ClientSecret.Length != 0)
            {
                hash ^= ClientSecret.GetHashCode();
            }
            if (MaxServices != 0)
            {
                hash ^= MaxServices.GetHashCode();
            }
            if (RegIntervalSeconds != 0)
            {
                hash ^= RegIntervalSeconds.GetHashCode();
            }
            if (Timeout != 0)
            {
                hash ^= Timeout.GetHashCode();
            }
            if (LogUserRequest != false)
            {
                hash ^= LogUserRequest.GetHashCode();
            }
            if (LogUserPayload != false)
            {
                hash ^= LogUserPayload.GetHashCode();
            }
            if (LogRolling != false)
            {
                hash ^= LogRolling.GetHashCode();
            }
            hash ^= loadBalancerConfigurations_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         return(((ClientId != null ? ClientId.GetHashCode() : 0) * 397) ^ (ClientSecret != null ? ClientSecret.GetHashCode() : 0));
     }
 }
Example #10
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 (DataCustodianId != null)
         {
             hashCode = hashCode * 59 + DataCustodianId.GetHashCode();
         }
         if (DataCustodianApplicationStatus != null)
         {
             hashCode = hashCode * 59 + DataCustodianApplicationStatus.GetHashCode();
         }
         if (ThirdPartyApplicationDescription != null)
         {
             hashCode = hashCode * 59 + ThirdPartyApplicationDescription.GetHashCode();
         }
         if (ThirdPartyApplicationStatus != null)
         {
             hashCode = hashCode * 59 + ThirdPartyApplicationStatus.GetHashCode();
         }
         if (ThirdPartyApplicationType != null)
         {
             hashCode = hashCode * 59 + ThirdPartyApplicationType.GetHashCode();
         }
         if (ThirdPartyApplicationUse != null)
         {
             hashCode = hashCode * 59 + ThirdPartyApplicationUse.GetHashCode();
         }
         if (ThirdPartyPhone != null)
         {
             hashCode = hashCode * 59 + ThirdPartyPhone.GetHashCode();
         }
         if (AuthorizationServerUri != null)
         {
             hashCode = hashCode * 59 + AuthorizationServerUri.GetHashCode();
         }
         if (ThirdPartyNotifyUri != null)
         {
             hashCode = hashCode * 59 + ThirdPartyNotifyUri.GetHashCode();
         }
         if (AuthorizationServerAuthorizationEndpoint != null)
         {
             hashCode = hashCode * 59 + AuthorizationServerAuthorizationEndpoint.GetHashCode();
         }
         if (AuthorizationServerRegistrationEndpoint != null)
         {
             hashCode = hashCode * 59 + AuthorizationServerRegistrationEndpoint.GetHashCode();
         }
         if (AuthorizationServerTokenEndpoint != null)
         {
             hashCode = hashCode * 59 + AuthorizationServerTokenEndpoint.GetHashCode();
         }
         if (DataCustodianBulkRequestURI != null)
         {
             hashCode = hashCode * 59 + DataCustodianBulkRequestURI.GetHashCode();
         }
         if (DataCustodianResourceEndpoint != null)
         {
             hashCode = hashCode * 59 + DataCustodianResourceEndpoint.GetHashCode();
         }
         if (ThirdPartyScopeSelectionURI != null)
         {
             hashCode = hashCode * 59 + ThirdPartyScopeSelectionURI.GetHashCode();
         }
         if (ThirdPartyUserPortalScreenURI != null)
         {
             hashCode = hashCode * 59 + ThirdPartyUserPortalScreenURI.GetHashCode();
         }
         if (ClientSecret != null)
         {
             hashCode = hashCode * 59 + ClientSecret.GetHashCode();
         }
         if (LogoUri != null)
         {
             hashCode = hashCode * 59 + LogoUri.GetHashCode();
         }
         if (ClientName != null)
         {
             hashCode = hashCode * 59 + ClientName.GetHashCode();
         }
         if (ClientUri != null)
         {
             hashCode = hashCode * 59 + ClientUri.GetHashCode();
         }
         if (RedirectUri != null)
         {
             hashCode = hashCode * 59 + RedirectUri.GetHashCode();
         }
         if (ClientId != null)
         {
             hashCode = hashCode * 59 + ClientId.GetHashCode();
         }
         if (TosUri != null)
         {
             hashCode = hashCode * 59 + TosUri.GetHashCode();
         }
         if (PolicyUri != null)
         {
             hashCode = hashCode * 59 + PolicyUri.GetHashCode();
         }
         if (SoftwareId != null)
         {
             hashCode = hashCode * 59 + SoftwareId.GetHashCode();
         }
         if (SoftwareVersion != null)
         {
             hashCode = hashCode * 59 + SoftwareVersion.GetHashCode();
         }
         if (ClientIdIssuedAt != null)
         {
             hashCode = hashCode * 59 + ClientIdIssuedAt.GetHashCode();
         }
         if (ClientSecretExpiresAt != null)
         {
             hashCode = hashCode * 59 + ClientSecretExpiresAt.GetHashCode();
         }
         if (Contacts != null)
         {
             hashCode = hashCode * 59 + Contacts.GetHashCode();
         }
         if (TokenEndpointAuthMethod != null)
         {
             hashCode = hashCode * 59 + TokenEndpointAuthMethod.GetHashCode();
         }
         if (Scope != null)
         {
             hashCode = hashCode * 59 + Scope.GetHashCode();
         }
         if (GrantTypes != null)
         {
             hashCode = hashCode * 59 + GrantTypes.GetHashCode();
         }
         if (ResponseTypes != null)
         {
             hashCode = hashCode * 59 + ResponseTypes.GetHashCode();
         }
         if (RegistrationClientUri != null)
         {
             hashCode = hashCode * 59 + RegistrationClientUri.GetHashCode();
         }
         if (RegistrationAccessToken != null)
         {
             hashCode = hashCode * 59 + RegistrationAccessToken.GetHashCode();
         }
         if (DataCustodianScopeSelectionScreenURI != null)
         {
             hashCode = hashCode * 59 + DataCustodianScopeSelectionScreenURI.GetHashCode();
         }
         return(hashCode);
     }
 }