public void Create(string agentTypeGuid, int agentServerArtifactId) { _agentTypeArtifactId = _environment.GetArtifactIdFromGuid(agentTypeGuid); _agentServerArtifactId = agentServerArtifactId; _runInterval = _environment.GetAgentRunIntervalByType(_agentTypeArtifactId); _agentName = CreateAgentName(); _agentArtifactTypeId = _environment.GetAgentArtifactType(); _systemContainerId = _environment.GetSystemContainerId(); RunCreateAgentSql(); }