<PackageReference Include="Relativity.Transfer.Client" Version="7.0.11" />

NodeContextBase

using System; namespace Relativity.DataTransfer.Nodes { public abstract class NodeContextBase : INodeContext, IEquatable<INodeContext> { public int ArtifactId { get; } public string FileshareName { get; } public string FilesharePath { get; } protected NodeContextBase(string fileshareName, int artifactId, string filesharePath) { FileshareName = fileshareName; ArtifactId = artifactId; FilesharePath = filesharePath; } public bool Equals(INodeContext other) { return other != null && ArtifactId == other.ArtifactId; } public override bool Equals(object obj) { if (obj != null) { if (this != obj) return obj.GetType() == GetType() && Equals((INodeContext)obj); return true; } return false; } public override int GetHashCode() { return ArtifactId.GetHashCode(); } } }