public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is OrderFulfillmentShipmentDetails other && ((Recipient == null && other.Recipient == null) || (Recipient?.Equals(other.Recipient) == true)) && ((Carrier == null && other.Carrier == null) || (Carrier?.Equals(other.Carrier) == true)) && ((ShippingNote == null && other.ShippingNote == null) || (ShippingNote?.Equals(other.ShippingNote) == true)) && ((ShippingType == null && other.ShippingType == null) || (ShippingType?.Equals(other.ShippingType) == true)) && ((TrackingNumber == null && other.TrackingNumber == null) || (TrackingNumber?.Equals(other.TrackingNumber) == true)) && ((TrackingUrl == null && other.TrackingUrl == null) || (TrackingUrl?.Equals(other.TrackingUrl) == true)) && ((PlacedAt == null && other.PlacedAt == null) || (PlacedAt?.Equals(other.PlacedAt) == true)) && ((InProgressAt == null && other.InProgressAt == null) || (InProgressAt?.Equals(other.InProgressAt) == true)) && ((PackagedAt == null && other.PackagedAt == null) || (PackagedAt?.Equals(other.PackagedAt) == true)) && ((ExpectedShippedAt == null && other.ExpectedShippedAt == null) || (ExpectedShippedAt?.Equals(other.ExpectedShippedAt) == true)) && ((ShippedAt == null && other.ShippedAt == null) || (ShippedAt?.Equals(other.ShippedAt) == true)) && ((CanceledAt == null && other.CanceledAt == null) || (CanceledAt?.Equals(other.CanceledAt) == true)) && ((CancelReason == null && other.CancelReason == null) || (CancelReason?.Equals(other.CancelReason) == true)) && ((FailedAt == null && other.FailedAt == null) || (FailedAt?.Equals(other.FailedAt) == true)) && ((FailureReason == null && other.FailureReason == null) || (FailureReason?.Equals(other.FailureReason) == true))); }
public bool Equals(MongoFailedJobInfoDoc other) { return FailedAt.Equals(other.FailedAt) && ExceptionMessage == other.ExceptionMessage && StackTrace == other.StackTrace && InnerException == other.InnerException; }
public override int GetHashCode() { unchecked { int hashCode = FailedAt.GetHashCode(); hashCode = (hashCode * 397) ^ ExceptionMessage.GetHashCode(); hashCode = (hashCode * 397) ^ StackTrace.GetHashCode(); hashCode = (hashCode * 397) ^ (InnerException != null ? InnerException.GetHashCode() : 0); return hashCode; } }
public override int GetHashCode() { unchecked { var hashCode = Id; hashCode = (hashCode * 397) ^ Priority; hashCode = (hashCode * 397) ^ Attempts; hashCode = (hashCode * 397) ^ (LastError != null ? LastError.GetHashCode() : 0); hashCode = (hashCode * 397) ^ RunAt.GetHashCode(); hashCode = (hashCode * 397) ^ SucceededAt.GetHashCode(); hashCode = (hashCode * 397) ^ FailedAt.GetHashCode(); hashCode = (hashCode * 397) ^ LockedAt.GetHashCode(); hashCode = (hashCode * 397) ^ (LockedBy != null ? LockedBy.GetHashCode() : 0); hashCode = (hashCode * 397) ^ CreatedAt.GetHashCode(); hashCode = (hashCode * 397) ^ UpdatedAt.GetHashCode(); return(hashCode); } }
public bool Equals(ScheduledJob other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Id == other.Id && Priority == other.Priority && Attempts == other.Attempts && string.Equals(LastError, other.LastError) && RunAt.Equals(other.RunAt) && SucceededAt.Equals(other.SucceededAt) && FailedAt.Equals(other.FailedAt) && LockedAt.Equals(other.LockedAt) && string.Equals(LockedBy, other.LockedBy) && CreatedAt.Equals(other.CreatedAt) && UpdatedAt.Equals(other.UpdatedAt)); }
public override int GetHashCode() { int hashCode = 1108362053; if (Recipient != null) { hashCode += Recipient.GetHashCode(); } if (Carrier != null) { hashCode += Carrier.GetHashCode(); } if (ShippingNote != null) { hashCode += ShippingNote.GetHashCode(); } if (ShippingType != null) { hashCode += ShippingType.GetHashCode(); } if (TrackingNumber != null) { hashCode += TrackingNumber.GetHashCode(); } if (TrackingUrl != null) { hashCode += TrackingUrl.GetHashCode(); } if (PlacedAt != null) { hashCode += PlacedAt.GetHashCode(); } if (InProgressAt != null) { hashCode += InProgressAt.GetHashCode(); } if (PackagedAt != null) { hashCode += PackagedAt.GetHashCode(); } if (ExpectedShippedAt != null) { hashCode += ExpectedShippedAt.GetHashCode(); } if (ShippedAt != null) { hashCode += ShippedAt.GetHashCode(); } if (CanceledAt != null) { hashCode += CanceledAt.GetHashCode(); } if (CancelReason != null) { hashCode += CancelReason.GetHashCode(); } if (FailedAt != null) { hashCode += FailedAt.GetHashCode(); } if (FailureReason != null) { hashCode += FailureReason.GetHashCode(); } return(hashCode); }