protected override void ProcessRecordCode() { //Validate Input arguments ValidateInputArguments(); IConnectionHelper connectionHelper = new ConnectionHelper( relativityInstanceName: RelativityInstanceName, relativityAdminUserName: RelativityAdminUserName, relativityAdminPassword: RelativityAdminPassword, sqlAdminUserName: SqlAdminUserName, sqlAdminPassword: SqlAdminPassword); IImagingHelper imagingHelper = new ImagingHelper(connectionHelper); IWorkspaceHelper workspaceHelper = new WorkspaceHelper(connectionHelper, null); // Run Imaging Job int workspaceArtifactId = workspaceHelper.GetFirstWorkspaceArtifactIdQueryAsync(WorkspaceName).Result; imagingHelper.ImageAllDocumentsInWorkspaceAsync(workspaceArtifactId).Wait(); }
protected override void ProcessRecordCode() { //Validate Input arguments ValidateInputArguments(); IConnectionHelper connectionHelper = new ConnectionHelper( relativityInstanceName: RelativityInstanceName, relativityAdminUserName: RelativityAdminUserName, relativityAdminPassword: RelativityAdminPassword, sqlAdminUserName: SqlAdminUserName, sqlAdminPassword: SqlAdminPassword); IImportApiHelper importApiHelper = new ImportApiHelper(connectionHelper); IWorkspaceHelper workspaceHelper = new WorkspaceHelper(connectionHelper, null); // Get workspaceId int workspaceId = workspaceHelper.GetFirstWorkspaceArtifactIdQueryAsync(WorkspaceName).Result; // Add documents for each Workspace ID specified importApiHelper.AddDocumentsToWorkspace(workspaceId, FileType, FileCount, ResourceFilePath).Wait(); }