private IRelativityTransferHost CreateRelativityTransferHost(ITransferLog transferLog) { Uri url = new Uri(RelativityUrl); IHttpCredential credential = new BasicAuthenticationCredential(RelativityUserName, RelativityPassword); RelativityConnectionInfo connectionInfo = new RelativityConnectionInfo(url, credential, WorkspaceArtifactId); return(new RelativityTransferHost(connectionInfo, transferLog)); }
public IRelativityTransferHost CreateRelativityTransferHost(ITransferLog log) { // Make sure the user actually changed the sample parameters! if (string.Compare(this._relativityUrl, "https://relativity_host.com", StringComparison.OrdinalIgnoreCase) == 0 || string.Compare(this._relativityUserName, "*****@*****.**", StringComparison.OrdinalIgnoreCase) == 0 || string.Compare(this._relativityPassword, "UnbreakableP@ssword777", StringComparison.OrdinalIgnoreCase) == 0 || this._workspaceId == 123456) { throw new ConfigurationValueInvalidException("You must update all Relativity connection parameters in app.config in order to run this sample."); } Uri url = this.GetInstanceUrl(); IHttpCredential credential = new BasicAuthenticationCredential(this._relativityUserName, this._relativityPassword); RelativityConnectionInfo connectionInfo = new RelativityConnectionInfo(url, credential, this._workspaceId); return(new RelativityTransferHost(connectionInfo, log)); }