HttpConnectionInfo
using System;
using System.Diagnostics;
namespace Relativity.Transfer
{
public class HttpConnectionInfo
{
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
public IHttpCredential Credential { get; set; }
public Uri Host { get; set; }
public HttpConnectionInfo()
{
Credential = null;
Host = null;
}
public HttpConnectionInfo(RelativityConnectionInfo connectionInfo)
{
if (connectionInfo == null)
throw new ArgumentNullException("connectionInfo");
Credential = connectionInfo.Credential;
Host = connectionInfo.Host;
}
public HttpConnectionInfo(Uri host, IHttpCredential credential)
{
if (host == (Uri)null)
throw new ArgumentNullException("host");
if (credential == null)
throw new ArgumentNullException("credential");
Host = host;
Credential = credential;
}
}
}