public Workspace(IRSAPIClient connection, DataRow workspaceRow, Relativity.API.IHelper helper) { try { ArtifactID = (int)workspaceRow["CaseArtifactID"]; ID = (int)workspaceRow["ID"]; JobArtifactID = (int)workspaceRow["JobArtifactID"]; InProgress = Convert.ToBoolean(workspaceRow["Status"]); FlagFieldColumnName = Convert.ToString(workspaceRow["FlagFieldColumnName"]); Helper = helper; EDDSDBConnection = Helper.GetDBContext(-1); WorkspaceDBConnection = Helper.GetDBContext(ArtifactID); Connection = connection; } catch (Exception ex) { throw ex; } }
public Batch(int batchSize, int agentID, Relativity.API.IHelper helper, Workspace workspace, IRSAPIClient connection) { try { BatchSize = batchSize; AgentID = agentID; Documents = new System.Data.DataTable(); _Workspace = workspace; _Helper = helper; EDDSDBConnection = _Helper.GetDBContext(-1); Connection = connection; } catch (Exception ex) { throw; throw; } }