FileShareResourceServer
using Relativity.Transfer.Resources;
using System;
using System.Globalization;
namespace Relativity.Transfer
{
public sealed class FileShareResourceServer
{
public int { get; set; }
public AsperaCredential { get; set; }
public bool { get; set; }
public string { get; set; }
public ResourcePool { get; set; }
public ResourceServerType { get; set; }
public string { get; set; }
public FileShareResourceServer()
{
ArtifactId = 0;
AsperaCredential = null;
CloudInstance = false;
Name = null;
ResourcePool = null;
ResourceServerType = null;
UncPath = null;
}
public FileShareResourceServer(int artifactId, AsperaCredential credential, string name, ResourceServerType serverType, string uncPath, bool cloudInstance)
: this(artifactId, credential, name, serverType, uncPath, cloudInstance, null)
{
}
public FileShareResourceServer(int artifactId, AsperaCredential credential, string name, ResourceServerType serverType, string uncPath, bool cloudInstance, ResourcePool pool)
{
if (artifactId < 1) {
string message = string.Format(CultureInfo.CurrentCulture, CoreStrings.ArtifactOutOfRangeExceptionMessage, "File Share Resource Server");
throw new ArgumentOutOfRangeException("artifactId", message);
}
if (string.IsNullOrEmpty(name))
throw new ArgumentNullException("name");
if (serverType == null)
throw new ArgumentNullException("serverType");
if (string.IsNullOrEmpty(uncPath))
throw new ArgumentNullException("uncPath");
ArtifactId = artifactId;
AsperaCredential = credential;
CloudInstance = cloudInstance;
Name = name;
ResourcePool = pool;
ResourceServerType = serverType;
UncPath = uncPath;
}
}
}