Ejemplo n.º 1
0
        protected override void ProcessRecordCode()
        {
            //Validate Input arguments
            ValidateInputArguments();

            IConnectionHelper connectionHelper = new ConnectionHelper(
                relativityInstanceName: RelativityInstanceName,
                relativityAdminUserName: RelativityAdminUserName,
                relativityAdminPassword: RelativityAdminPassword,
                sqlAdminUserName: SqlAdminUserName,
                sqlAdminPassword: SqlAdminPassword);
            IAgentHelper agentHelper = new AgentHelper(connectionHelper);

            //Create Agents for all Applications
            foreach (string agentName in AgentNames)
            {
                //Create Agents for Application
                string trimmedAgentName = agentName.Trim();
                agentHelper.AddAgentToRelativityByNameAsync(trimmedAgentName).Wait();
            }
        }