Relativity.Transfer.ConnectionServiceBase
namespace Relativity.Transfer
{
public abstract class ConnectionServiceBase : IDisposable
{
public abstract Guid ClientId { get; }
public abstract string ClientDisplayName { get; }
protected RelativityConnectionInfo ConnectionInfo { get; }
protected ClientConfiguration Configuration { get; }
protected DiagnosticsContext Context { get; }
protected IFileSystemService FileSystemService { get; }
protected Guid TempFileId { get; }
protected string TempFile { get; }
protected ITransferLog Log { get; }
protected ConnectionServiceBase(RelativityConnectionInfo connectionInfo, ClientConfiguration configuration, IFileSystemService fileSystemService, ITransferLog log, DiagnosticsContext context);
public Task<IConnectionCheckResult> ExecConnectionCheckAsync();
public virtual Task<IConnectionCheckResult> ExecConnectionCheckAsync(CancellationToken token);
public void Dispose();
protected Task RunUploadTestAsync(CancellationToken token);
protected Task RunDownloadTestAsync(CancellationToken token);
protected virtual Task RunPreTestsAsync(CancellationToken token);
protected virtual Task RunPortsTestAsync(CancellationToken token);
protected abstract Task TestUploadAsync(CancellationToken token);
protected abstract Task TestDownloadAsync(CancellationToken token);
protected void WriteStatusMessage(string message, params object[] args);
protected void WriteErrorMessage(string message, params object[] args);
protected TempDirectory GetTempDirectory();
protected void AddClientInfoToHealthCheck(string key, object value);
protected void AddClientInfoToHealthCheck(IDictionary<string, object> keyValuePair);
}
}