public void DefaultToStringGetHashCode() { RequestMethod method = default; Assert.AreEqual(0, method.GetHashCode()); Assert.AreEqual("<null>", method.ToString()); }
public override int GetHashCode() { int hash = 1; if (RequestMethod.Length != 0) { hash ^= RequestMethod.GetHashCode(); } if (RequestUrl.Length != 0) { hash ^= RequestUrl.GetHashCode(); } if (RequestSize != 0L) { hash ^= RequestSize.GetHashCode(); } if (Status != 0) { hash ^= Status.GetHashCode(); } if (ResponseSize != 0L) { hash ^= ResponseSize.GetHashCode(); } if (UserAgent.Length != 0) { hash ^= UserAgent.GetHashCode(); } if (RemoteIp.Length != 0) { hash ^= RemoteIp.GetHashCode(); } if (Referer.Length != 0) { hash ^= Referer.GetHashCode(); } if (CacheHit != false) { hash ^= CacheHit.GetHashCode(); } if (ValidatedWithOriginServer != false) { hash ^= ValidatedWithOriginServer.GetHashCode(); } return(hash); }
public virtual int _GetUniqueIdentifier() { var hashCode = 399326290; hashCode = hashCode * -1521134295 + (RequestPath?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Message?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (RequestId?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (RequestMethod?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (ElapsedMsecs?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (IP?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Service?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Operation?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (StatusCode?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Timestamp?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Username?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (RequestUri?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (ClientId?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (ClientName?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (ProductName?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (RequestLogKey?.GetHashCode() ?? 0); return(hashCode); }
public override int GetHashCode() { int hash = 1; if (RequestMethod.Length != 0) { hash ^= RequestMethod.GetHashCode(); } if (RequestUrl.Length != 0) { hash ^= RequestUrl.GetHashCode(); } if (RequestSize != 0L) { hash ^= RequestSize.GetHashCode(); } if (Status != 0) { hash ^= Status.GetHashCode(); } if (ResponseSize != 0L) { hash ^= ResponseSize.GetHashCode(); } if (UserAgent.Length != 0) { hash ^= UserAgent.GetHashCode(); } if (RemoteIp.Length != 0) { hash ^= RemoteIp.GetHashCode(); } if (ServerIp.Length != 0) { hash ^= ServerIp.GetHashCode(); } if (Referer.Length != 0) { hash ^= Referer.GetHashCode(); } if (latency_ != null) { hash ^= Latency.GetHashCode(); } if (CacheLookup != false) { hash ^= CacheLookup.GetHashCode(); } if (CacheHit != false) { hash ^= CacheHit.GetHashCode(); } if (CacheValidatedWithOriginServer != false) { hash ^= CacheValidatedWithOriginServer.GetHashCode(); } if (CacheFillBytes != 0L) { hash ^= CacheFillBytes.GetHashCode(); } if (Protocol.Length != 0) { hash ^= Protocol.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hashCode = 772730141; if (Uid != null) { hashCode += Uid.GetHashCode(); } if (RequestMethod != null) { hashCode += RequestMethod.GetHashCode(); } if (RequestType != null) { hashCode += RequestType.GetHashCode(); } if (DueDate != null) { hashCode += DueDate.GetHashCode(); } if (FixedAmountRequestedMoney != null) { hashCode += FixedAmountRequestedMoney.GetHashCode(); } if (PercentageRequested != null) { hashCode += PercentageRequested.GetHashCode(); } if (TippingEnabled != null) { hashCode += TippingEnabled.GetHashCode(); } if (AutomaticPaymentSource != null) { hashCode += AutomaticPaymentSource.GetHashCode(); } if (CardId != null) { hashCode += CardId.GetHashCode(); } if (Reminders != null) { hashCode += Reminders.GetHashCode(); } if (ComputedAmountMoney != null) { hashCode += ComputedAmountMoney.GetHashCode(); } if (TotalCompletedAmountMoney != null) { hashCode += TotalCompletedAmountMoney.GetHashCode(); } if (RoundingAdjustmentIncludedMoney != null) { hashCode += RoundingAdjustmentIncludedMoney.GetHashCode(); } return(hashCode); }