ResourcePool
using Relativity.Transfer.Resources;
using System;
using System.Globalization;
namespace Relativity.Transfer
{
public sealed class ResourcePool
{
public int ArtifactId { get; set; }
public string Name { get; set; }
public ResourcePool()
{
ArtifactId = 0;
Name = null;
}
public ResourcePool(int artifactId, string name)
{
if (artifactId < 1) {
string message = string.Format(CultureInfo.CurrentCulture, CoreStrings.ArtifactOutOfRangeExceptionMessage, "Resource Pool");
throw new ArgumentOutOfRangeException("artifactId", message);
}
if (string.IsNullOrEmpty(name))
throw new ArgumentNullException("name");
ArtifactId = artifactId;
Name = name;
}
}
}