Пример #1
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 (Id != null)
                {
                    hashCode = hashCode * 59 + Id.GetHashCode();
                }
                if (Name != null)
                {
                    hashCode = hashCode * 59 + Name.GetHashCode();
                }

                hashCode = hashCode * 59 + Enabled.GetHashCode();
                if (TenantId != null)
                {
                    hashCode = hashCode * 59 + TenantId.GetHashCode();
                }
                if (ImsOrgId != null)
                {
                    hashCode = hashCode * 59 + ImsOrgId.GetHashCode();
                }
                if (Links != null)
                {
                    hashCode = hashCode * 59 + Links.GetHashCode();
                }
                return(hashCode);
            }
        }
 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);
     }
 }
Пример #3
0
 public override int GetHashCode()
 {
     return
         (+(2335 * 3)
          + TenantId.GetHashCode()
          + ProductId.GetHashCode());
 }
Пример #4
0
        /// <inheritdoc/>
        public override int GetHashCode()
        {
            var hash = 17;

            hash = TenantId.HasValue ? hash * 23 + TenantId.GetHashCode() : hash;
            hash = hash * 23 + UserId.GetHashCode();
            return(hash);
        }
 public override int GetHashCode()
 {
     return
         (+(282891 * 53)
          + TenantId.GetHashCode()
          + SprintId.GetHashCode()
          + BacklogItemId.GetHashCode());
 }
Пример #6
0
 public override int GetHashCode()
 {
     return
         (+(73281 * 47)
          + TenantId.GetHashCode()
          + ReleaseId.GetHashCode()
          + BacklogItemId.GetHashCode());
 }
Пример #7
0
 public override int GetHashCode()
 {
     return
         (+(15389 * 97)
          + TenantId.GetHashCode()
          + ProductId.GetHashCode()
          + BacklogItemId.GetHashCode());
 }
Пример #8
0
        public override int GetHashCode()
        {
            int hashCodeValue =
                +(79157 * 107)
                + TenantId.GetHashCode()
                + ProcessId.GetHashCode();

            return(hashCodeValue);
        }
Пример #9
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (TenantId != null ? TenantId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ReadOnly.GetHashCode();
         return(hashCode);
     }
 }
Пример #10
0
 public override int GetHashCode()
 {
     unchecked // Overflow is fine
     {
         int hash = 17;
         hash = hash * 23 + (SubscriptionId != null ? SubscriptionId.GetHashCode() : 0);
         hash = hash * 23 + (TenantId != null ? TenantId.GetHashCode() : 0);
         hash = hash * 23 + (DisplayName != null ? DisplayName.GetHashCode() : 0);
         hash = hash * 23 + (State != null ? State.GetHashCode() : 0);
         return(hash);
     }
 }
Пример #11
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = TenantId != null?TenantId.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ SubscriptionId.GetHashCode();
                hashCode = (hashCode * 397) ^ (ResourceGroup != null ? ResourceGroup.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ ClientId.GetHashCode();
                hashCode = (hashCode * 397) ^ (ClientSecret != null ? ClientSecret.GetHashCode() : 0);
                return(hashCode);
            }
        }
Пример #12
0
 /// <summary> 
 /// Computes and retrieves a hash code for an object. 
 /// </summary> 
 /// <remarks> 
 /// This method implements the <see cref="Object">Object</see> method. 
 /// </remarks> 
 /// <returns>A hash code for an object.</returns>
 public override int GetHashCode()
 {
     return
         (TenantId.GetHashCode()
          + CreatorUserId.GetHashCode()
          + CreationTime.GetHashCode()
          + Name.GetHashCode()
          + DescriptionFull.GetHashCode()
          + DescriptionShort.GetHashCode()
          + LastModifierUserId.GetHashCode()
          + LastModificationTime.GetHashCode()
          + DeletionTime.GetHashCode()
          + DeleterUserId.GetHashCode()
         );
 }
        /// <summary>
        ///     Returns a hash code for this instance.
        /// </summary>
        /// <returns>A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.</returns>
        public override int GetHashCode()
        {
            unchecked
            {
                var hash = 17;

                hash = hash * 92821 + TenantId.GetHashCode();

                hash = hash * 92821 + IdentityProviderId.GetHashCode();

                hash = hash * 92821 + IdentityProviderUserName.GetHashCode();

                return(hash);
            }
        }
Пример #14
0
            /// <summary>
            ///     Returns a hash code for this instance.
            /// </summary>
            /// <returns>
            ///     A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
            /// </returns>
            public override int GetHashCode()
            {
                unchecked
                {
                    int hash = 17;

                    if (TypeName != null)
                    {
                        hash = hash * 92821 + TypeName.GetHashCode( );
                    }

                    hash = hash * 92821 + TenantId.GetHashCode( );

                    return(hash);
                }
            }
Пример #15
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);
     }
 }
Пример #16
0
        /// <summary>
        ///     Returns a hash code for this instance.
        /// </summary>
        /// <returns>
        ///     A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
        /// </returns>
        public override int GetHashCode( )
        {
            unchecked
            {
                int hashCode = 17;

                hashCode = hashCode * 92821 + Id.GetHashCode( );
                hashCode = hashCode * 92821 + ReadOnly.GetHashCode( );
                hashCode = hashCode * 92821 + TenantId.GetHashCode( );

                if (TypeIds != null)
                {
                    hashCode = hashCode * 92821 + TypeIds.GetHashCode( );
                }

                return(hashCode);
            }
        }
Пример #17
0
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hash = (Key != null) ? Key.GetHashCode() : 0;
         // Suitable nullity checks etc, of course :)
         hash = (DeploymentId != null) ? hash * 17 + DeploymentId.GetHashCode() : hash;
         hash = (Name != null) ? hash * 17 + Name.GetHashCode() : hash;
         hash = (DefinitionKey != null) ? hash * 17 + DefinitionKey.GetHashCode() : hash;
         hash = (ProcessDefinitionDescription != null) ? hash * 17 + ProcessDefinitionDescription.GetHashCode() : hash;
         hash = (ProcessDefinitionResource != null) ? hash * 17 + ProcessDefinitionResource.GetHashCode() : hash;
         hash = (ProcessDefinitionDiagramResourceName != null) ? hash * 17 + ProcessDefinitionDiagramResourceName.GetHashCode() : hash;
         hash = hash * 17 + ProcessDefinitionHasStartFormKey.GetHashCode();
         hash = hash * 17 + ProcessDefinitionHasGraphicalNotation.GetHashCode();
         hash = hash * 17 + IsSuspended.GetHashCode();
         hash = (TenantId != null) ? hash * 17 + TenantId.GetHashCode() : hash;
         return(hash);
     }
 }
Пример #18
0
 public override int GetHashCode()
 {
     unchecked // overflow is fine, just wrap
     {
         var hash = 17;
         hash *= 23 + LogLevel.GetHashCode();
         hash *= 23 + (EnvironmentName != null ? EnvironmentName.GetHashCode() : 0);
         hash *= 23 + (ClientId.HasValue ? ClientId.GetHashCode() : 0);
         hash *= 23 + (ClientVersion != null ? ClientVersion.GetHashCode() : 0);
         hash *= 23 + (MachineName != null ? MachineName.GetHashCode() : 0);
         hash *= 23 + (TenantId.HasValue ? TenantId.GetHashCode() : 0);
         hash *= 23 + (UserId.HasValue ? UserId.GetHashCode() : 0);
         hash *= 23 + (UserName != null ? UserName.GetHashCode() : 0);
         hash *= 23 + (SessionId.HasValue ? SessionId.GetHashCode() : 0);
         hash *= 23 + (DeviceId.HasValue ? DeviceId.GetHashCode() : 0);
         hash *= 23 + (CorrelationId.HasValue ? CorrelationId.GetHashCode() : 0);
         hash *= 23 + (Source != null ? Source.GetHashCode() : 0);
         hash *= 23 + (Message != null ? Message.GetHashCode() : 0);
         hash *= 23 + (Callstack != null ? Callstack.GetHashCode() : 0);
         return(hash);
     }
 }
 /// <summary> 
 /// Computes and retrieves a hash code for an object. 
 /// </summary> 
 /// <remarks> 
 /// This method implements the <see cref="Object">Object</see> method. 
 /// </remarks> 
 /// <returns>A hash code for an object.</returns>
 public override int GetHashCode()
 {
     return(Name.GetHashCode() + Culture.GetHashCode() + TenantId.GetHashCode() + CreatorUserName.GetHashCode() + LastModifierUserName.GetHashCode());
 }
Пример #20
0
 public override int GetHashCode()
 {
     return((TenantId.GetHashCode() + UserId.GetHashCode()) ^ EMail.Address.ToLowerInvariant().GetHashCode());
 }
Пример #21
0
 /// <summary> 
 /// Computes and retrieves a hash code for an object. 
 /// </summary> 
 /// <remarks> 
 /// This method implements the <see cref="Object">Object</see> method. 
 /// </remarks> 
 /// <returns>A hash code for an object.</returns>
 public override int GetHashCode()
 {
     return(Id.GetHashCode() + Culture.GetHashCode() + TenantId.GetHashCode());
 }
Пример #22
0
 public override int GetHashCode()
 {
     return(TenantId.GetHashCode() ^ EntityId.GetHashCode());
 }