<PackageReference Include="Relativity.Server.Transfer.SDK" Version="24000.0.1" />

TransferIssue

using System; namespace Relativity.Transfer { public class TransferIssue : ITransferIssue, IEquatable<ITransferIssue> { public IssueAttributes Attributes { get; set; } public int? Code { get; set; } public int Index { get; set; } public int MaxRetryAttempts { get; set; } public string Message { get; set; } public TransferPath Path { get; set; } public bool IsRetryable { get; set; } public int RetryAttempt { get; set; } public DateTime Timestamp { get; set; } public TransferIssue() { Attributes = IssueAttributes.None; Code = 0; MaxRetryAttempts = 1; Message = null; Path = null; RetryAttempt = 1; Timestamp = DateTime.Now; IsRetryable = true; } public TransferIssue(ITransferIssue issue) { if (issue == null) throw new ArgumentNullException("issue"); Attributes = issue.Attributes; Code = issue.Code; MaxRetryAttempts = issue.MaxRetryAttempts; Message = issue.Message; Path = issue.Path; RetryAttempt = issue.RetryAttempt; Timestamp = issue.Timestamp; IsRetryable = issue.IsRetryable; } public static bool operator ==(TransferIssue x, TransferIssue y) { if ((object)x == y) return true; if ((object)x == null) return false; if ((object)y == null) return false; int? code = x.Code; int? code2 = y.Code; if (((code.GetValueOrDefault() == code2.GetValueOrDefault()) & (code.HasValue == code2.HasValue)) && x.Index == y.Index && x.Message == y.Message && x.Path == y.Path && x.Attributes == y.Attributes) return x.IsRetryable == y.IsRetryable; return false; } public static bool operator !=(TransferIssue x, TransferIssue y) { return !(x == y); } public override int GetHashCode() { int num = 0 * 397; int? code = Code; int num2; if (!code.HasValue) num2 = 0; else { code = Code; num2 = code.GetHashCode(); } int num3 = (num ^ num2) * 397; int num4 = Index; int num5 = (num3 ^ num4.GetHashCode()) * 397; num4 = MaxRetryAttempts; int num6 = (((((num5 ^ num4.GetHashCode()) * 397) ^ ((Message != null) ? Message.GetHashCode() : 0)) * 397) ^ ((Path != (TransferPath)null) ? Path.GetHashCode() : 0)) * 397; num4 = RetryAttempt; return ((((num6 ^ num4.GetHashCode()) * 397) ^ Attributes.GetHashCode()) * 397) ^ IsRetryable.GetHashCode(); } public override bool Equals(object obj) { return Equals(obj as ITransferIssue); } public bool Equals(ITransferIssue other) { if (other == null) return false; if (this == other) return true; int? code = Code; int? code2 = other.Code; if (((code.GetValueOrDefault() == code2.GetValueOrDefault()) & (code.HasValue == code2.HasValue)) && Index == other.Index && Message == other.Message && Path == other.Path && Attributes == other.Attributes) return IsRetryable == other.IsRetryable; return false; } } }