public override int GetHashCode() { var h1 = ProcessId.GetHashCode(); var h2 = StartTime.GetHashCode(); return(((h1 << 5) + h1) ^ h2); }
public override int GetHashCode() { var hashCode = 17; hashCode = hashCode * 23 + (ProcessId.GetHashCode()); hashCode = hashCode * 23 + SequenceNr.GetHashCode(); return(hashCode); }
public override int GetHashCode() { var hashCode = 802333198; hashCode = hashCode * -1521134295 + ProcessId.GetHashCode(); hashCode = hashCode * -1521134295 + ParentProcessId.GetHashCode(); return(hashCode); }
public override int GetHashCode() { unchecked { var hash = 17; hash = (hash * 23) + ProcessId.GetHashCode(); return((hash * 23) + StartTime.GetHashCode()); } }
public override int GetHashCode() { unchecked { var hashCode = ProcessId.GetHashCode(); hashCode = (hashCode * 397) ^ (ProcessName?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ ThreadId; return(hashCode); } }
public override int GetHashCode() { unchecked { var hash = 17; hash = hash * 23 + AppDomainId.GetHashCode(); hash = hash * 23 + ProcessId.GetHashCode(); return(hash); } }
/// <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 (ProcessId != null) { hashCode = hashCode * 59 + ProcessId.GetHashCode(); } if (ActorIdentityId != null) { hashCode = hashCode * 59 + ActorIdentityId.GetHashCode(); } if (ExecutorIdentityId != null) { hashCode = hashCode * 59 + ExecutorIdentityId.GetHashCode(); } if (FromActivityName != null) { hashCode = hashCode * 59 + FromActivityName.GetHashCode(); } if (FromStateName != null) { hashCode = hashCode * 59 + FromStateName.GetHashCode(); } if (IsFinalised != null) { hashCode = hashCode * 59 + IsFinalised.GetHashCode(); } if (ToActivityName != null) { hashCode = hashCode * 59 + ToActivityName.GetHashCode(); } if (ToStateName != null) { hashCode = hashCode * 59 + ToStateName.GetHashCode(); } if (TransitionClassifier != null) { hashCode = hashCode * 59 + TransitionClassifier.GetHashCode(); } if (TransitionTime != null) { hashCode = hashCode * 59 + TransitionTime.GetHashCode(); } if (TriggerName != null) { hashCode = hashCode * 59 + TriggerName.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = Priority != null?Priority.GetHashCode() : 0; hashCode = (hashCode * 397) ^ Version.GetHashCode(); hashCode = (hashCode * 397) ^ EventTime.GetHashCode(); hashCode = (hashCode * 397) ^ (Hostname != null ? Hostname.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (AppName != null ? AppName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ProcessId != null ? ProcessId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (MessageId != null ? MessageId.GetHashCode() : 0); return(hashCode); } }
/// <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 (ProcessId != null) { hashCode = hashCode * 59 + ProcessId.GetHashCode(); } if (IdentityId != null) { hashCode = hashCode * 59 + IdentityId.GetHashCode(); } if (AllowedToEmployeeNames != null) { hashCode = hashCode * 59 + AllowedToEmployeeNames.GetHashCode(); } if (TransitionTime != null) { hashCode = hashCode * 59 + TransitionTime.GetHashCode(); } if (Order != null) { hashCode = hashCode * 59 + Order.GetHashCode(); } if (InitialState != null) { hashCode = hashCode * 59 + InitialState.GetHashCode(); } if (DestinationState != null) { hashCode = hashCode * 59 + DestinationState.GetHashCode(); } if (Command != null) { hashCode = hashCode * 59 + Command.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (HostName.Length != 0) hash ^= HostName.GetHashCode(); if (HostIp.Length != 0) hash ^= HostIp.GetHashCode(); if (ProcessId != 0) hash ^= ProcessId.GetHashCode(); if (NodeName.Length != 0) hash ^= NodeName.GetHashCode(); if (NodeId != 0UL) hash ^= NodeId.GetHashCode(); if (ChannelName.Length != 0) hash ^= ChannelName.GetHashCode(); if (ChannelId != 0UL) hash ^= ChannelId.GetHashCode(); if (MessageType.Length != 0) hash ^= MessageType.GetHashCode(); if (ProtoDesc.Length != 0) hash ^= ProtoDesc.GetHashCode(); if (Id != 0UL) hash ^= Id.GetHashCode(); if (qosProfile_ != null) hash ^= QosProfile.GetHashCode(); if (socketAddr_ != null) hash ^= SocketAddr.GetHashCode(); if (ServiceName.Length != 0) hash ^= ServiceName.GetHashCode(); if (ServiceId != 0UL) hash ^= ServiceId.GetHashCode(); return hash; }
public override int GetHashCode() { unchecked { var hashCode = ProcessorCount; hashCode = (hashCode * 397) ^ TotalPhysicalMemory.GetHashCode(); hashCode = (hashCode * 397) ^ (CommandLine == null ? 0 : CommandLine.GetHashCode()); hashCode = (hashCode * 397) ^ (ProcessName == null ? 0 : ProcessName.GetHashCode()); hashCode = (hashCode * 397) ^ (ProcessId == null ? 0 : ProcessId.GetHashCode()); hashCode = (hashCode * 397) ^ (Architecture == null ? 0 : Architecture.GetHashCode()); hashCode = (hashCode * 397) ^ (OSName == null ? 0 : OSName.GetHashCode()); hashCode = (hashCode * 397) ^ (OSVersion == null ? 0 :OSVersion.GetHashCode()); hashCode = (hashCode * 397) ^ (IpAddress == null ? 0 : IpAddress.GetHashCode()); hashCode = (hashCode * 397) ^ (MachineName == null ? 0 : MachineName.GetHashCode()); hashCode = (hashCode * 397) ^ (InstallId == null ? 0 : InstallId.GetHashCode()); hashCode = (hashCode * 397) ^ (RuntimeVersion == null ? 0 : RuntimeVersion.GetHashCode()); hashCode = (hashCode * 397) ^ (Data == null ? 0 : Data.GetCollectionHashCode()); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = ProcessorCount; hashCode = (hashCode * 397) ^ TotalPhysicalMemory.GetHashCode(); hashCode = (hashCode * 397) ^ (CommandLine?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (ProcessName?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (ProcessId?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Architecture?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (OSName?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (OSVersion?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (IpAddress?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (MachineName?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (InstallId?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (RuntimeVersion?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Data?.GetCollectionHashCode() ?? 0); return(hashCode); } }
/// <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 (ProcessId != null) { hashCode = hashCode * 59 + ProcessId.GetHashCode(); } if (SchemeCode != null) { hashCode = hashCode * 59 + SchemeCode.GetHashCode(); } if (ProcessInstance != null) { hashCode = hashCode * 59 + ProcessInstance.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = (Payload != null ? Payload.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (EmitterId != null ? EmitterId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (EmitterAggregateId != null ? EmitterAggregateId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ SystemTimestamp.GetHashCode(); hashCode = (hashCode * 397) ^ (VectorTimestamp != null ? VectorTimestamp.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ProcessId != null ? ProcessId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (LocalLogId != null ? LocalLogId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ LocalSequenceNr.GetHashCode(); hashCode = (hashCode * 397) ^ (DeliveryId != null ? DeliveryId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ PersistOnEventSequenceNr.GetHashCode(); hashCode = (hashCode * 397) ^ PersistOnEventId.GetHashCode(); hashCode = (hashCode * 397) ^ Id.GetHashCode(); foreach (var id in CustomDestinationAggregateIds) { hashCode = (hashCode * 397) ^ id.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() => Id.GetHashCode();
public override int GetHashCode() { return(ProcessId != null ? ProcessId.GetHashCode() : 0); }
public override int GetHashCode() { int result = 17; unchecked { if (Parameters != null) { result = (result * 31) + Parameters.GetHashCode(); } result = (result * 31) + StartTime.GetHashCode(); result = (result * 31) + EndTime.GetHashCode(); if (CorrelationId != null) { result = (result * 31) + CorrelationId.GetHashCode(); } if (Machine != null) { result = (result * 31) + Machine.GetHashCode(); } if (Account != null) { result = (result * 31) + Account.GetHashCode(); } result = (result * 31) + ProcessId.GetHashCode(); if (FileName != null) { result = (result * 31) + FileName.GetHashCode(); } if (WorkingDirectory != null) { result = (result * 31) + WorkingDirectory.GetHashCode(); } if (EnvironmentVariables != null) { // Use xor for dictionaries to be order-independent. int xor_0 = 0; foreach (var value_0 in EnvironmentVariables) { xor_0 ^= value_0.Key.GetHashCode(); if (value_0.Value != null) { xor_0 ^= value_0.Value.GetHashCode(); } } result = (result * 31) + xor_0; } if (Properties != null) { result = (result * 31) + Properties.GetHashCode(); } if (Tags != null) { foreach (var value_1 in Tags) { result = result * 31; if (value_1 != null) { result = (result * 31) + value_1.GetHashCode(); } } } } return(result); }