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

FileShareConnectionInfo

using Relativity.Transfer.FileShare.Resources; using System; namespace Relativity.Transfer.FileShare { public class FileShareConnectionInfo : IEquatable<FileShareConnectionInfo> { public string FileShareUncPath { get; set; } public bool IsDefined => !string.IsNullOrEmpty(FileShareUncPath); public FileShareConnectionInfo() { FileShareUncPath = string.Empty; } public FileShareConnectionInfo(string workspaceFileShare) { if (string.IsNullOrEmpty(workspaceFileShare)) throw new ArgumentNullException("workspaceFileShare", FileShareStrings.WorkspaceFileShareArgumentExceptionMessage); FileShareUncPath = workspaceFileShare; } public static bool operator ==(FileShareConnectionInfo x, FileShareConnectionInfo y) { if ((object)x == y) return true; if ((object)x == null) return false; if ((object)y == null) return false; return string.Compare(x.FileShareUncPath, y.FileShareUncPath, StringComparison.OrdinalIgnoreCase) == 0; } public static bool operator !=(FileShareConnectionInfo x, FileShareConnectionInfo y) { return !(x == y); } public override int GetHashCode() { if (string.IsNullOrEmpty(FileShareUncPath)) return 0; return FileShareUncPath.GetHashCode(); } public override bool Equals(object obj) { return Equals(obj as FileShareConnectionInfo); } public bool Equals(FileShareConnectionInfo other) { if ((object)other == null) return false; if ((object)this == other) return true; return string.Compare(FileShareUncPath, other.FileShareUncPath, StringComparison.OrdinalIgnoreCase) == 0; } } }