public override int GetHashCode()
 {
     unchecked
     {
         return((ApplicationName.GetHashCode() * 397) ^ InstanceName.GetHashCode());
     }
 }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     return(EventName.GetHashCode()
            ^ ApplicationName.GetHashCode()
            ^ ApplicationVersion.GetHashCode()
            ^ FaultingModule.GetHashCode()
            ^ FaultingModuleVersion.GetHashCode());
 }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     if (string.IsNullOrEmpty(ApplicationName))
     {
         return(base.GetHashCode());                                       //transient instance
     }
     return(ApplicationName.GetHashCode());
 }
Exemplo n.º 4
0
        public override int GetHashCode()
        {
            int hash = GetType().GetHashCode();

            hash = (hash * 397) ^ UserID.GetHashCode();
            hash = (hash * 397) ^ ApplicationName.GetHashCode();

            return(hash);
        }
Exemplo n.º 5
0
 public override int GetHashCode()
 {
     unchecked {
         int hashCode = (SchemaId != null ? SchemaId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Mode.GetHashCode();
         hashCode = (hashCode * 397) ^ (ApplicationName != null ? ApplicationName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)Platform;
         return(hashCode);
     }
 }
Exemplo n.º 6
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = ClientId != null?ClientId.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (ApplicationName != null ? ApplicationName.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (EnvironmentName != null ? EnvironmentName.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (ConfigurationName != null ? ConfigurationName.GetHashCode() : 0);
                return(hashCode);
            }
        }
Exemplo n.º 7
0
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                int hash = 17;

                if (ApplicationName != null)
                {
                    hash = hash * 23 + ApplicationName.GetHashCode();
                }

                if (TaskName != null)
                {
                    hash = hash * 23 + TaskName.GetHashCode();
                }

                return(hash);
            }
        }
Exemplo n.º 8
0
        public override int GetHashCode()
        {
            unchecked
            {
                int hash = 17;

                if (ApplicationName != null)
                {
                    hash = hash * 23 + ApplicationName.GetHashCode();
                }

                hash = hash * 23 + Stage.GetHashCode();
                hash = hash * 23 + MajorVersion.GetHashCode();
                hash = hash * 23 + FeatureNumber.GetHashCode();
                hash = hash * 23 + HotfixNumber.GetHashCode();
                hash = hash * 23 + Build.GetHashCode();

                return(hash);
            }
        }
Exemplo n.º 9
0
        /// <inheritdoc/>
        public override int GetHashCode()
        {
            // Overflow is fine, just wrap.
            unchecked
            {
                int hash = 17;

                hash *= 23 + ApplicationName.GetHashCode();
                hash *= 23 + ApplicationSystemId.GetHashCode();
                hash *= 23 + ApplicationVersion.GetHashCode();
                hash *= 23 + ContentDescription.GetHashCode();
                hash *= 23 + Copyright.GetHashCode();
                hash *= 23 + Corporation.GetHashCode();
                hash *= 23 + CorporationAddress.GetHashCode();
                hash *= 23 + Filename.GetHashCode();
                hash *= 23 + Language.GetHashCode();
                hash *= 23 + SourceCopyright.GetHashCode();
                hash *= 23 + SourceDate.GetHashCode();
                hash *= 23 + SourceName.GetHashCode();
                hash *= 23 + TransmissionDate.GetHashCode();

                return(hash);
            }
        }
Exemplo n.º 10
0
        public override int GetHashCode()
        {
            int hashCode = 1465447186;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            return(hashCode);
        }
Exemplo n.º 11
0
 /// <summary>
 /// Returns the hashcode of this Object
 /// </summary>
 /// <returns>Hash code (int)</returns>
 public override int GetHashCode()
 {
     // Credit: http://stackoverflow.com/a/263416/677735
     unchecked             // Overflow is fine, just wrap
     {
         int hash = 41;
         // Suitable nullity checks etc, of course :)
         if (Id != null)
         {
             hash = hash * 59 + Id.GetHashCode();
         }
         if (LogMessageTypeId != null)
         {
             hash = hash * 59 + LogMessageTypeId.GetHashCode();
         }
         if (ApplicationName != null)
         {
             hash = hash * 59 + ApplicationName.GetHashCode();
         }
         if (ApplicationMethod != null)
         {
             hash = hash * 59 + ApplicationMethod.GetHashCode();
         }
         if (IpAddress != null)
         {
             hash = hash * 59 + IpAddress.GetHashCode();
         }
         if (LoginToken != null)
         {
             hash = hash * 59 + LoginToken.GetHashCode();
         }
         if (ShortMessage != null)
         {
             hash = hash * 59 + ShortMessage.GetHashCode();
         }
         if (RequestHttpMethod != null)
         {
             hash = hash * 59 + RequestHttpMethod.GetHashCode();
         }
         if (RequestUri != null)
         {
             hash = hash * 59 + RequestUri.GetHashCode();
         }
         if (RequestParams != null)
         {
             hash = hash * 59 + RequestParams.GetHashCode();
         }
         if (RequestBody != null)
         {
             hash = hash * 59 + RequestBody.GetHashCode();
         }
         if (StatusCode != null)
         {
             hash = hash * 59 + StatusCode.GetHashCode();
         }
         if (ResponseContent != null)
         {
             hash = hash * 59 + ResponseContent.GetHashCode();
         }
         if (FullMessage != null)
         {
             hash = hash * 59 + FullMessage.GetHashCode();
         }
         if (Exception != null)
         {
             hash = hash * 59 + Exception.GetHashCode();
         }
         if (Trace != null)
         {
             hash = hash * 59 + Trace.GetHashCode();
         }
         if (Logged != null)
         {
             hash = hash * 59 + Logged.GetHashCode();
         }
         return(hash);
     }
 }