/// <summary> /// Create an environment with a certain name. /// </summary> /// <param name="environmentName"></param> /// <returns>A new environment with the given name.</returns> public static SigmaEnvironment Create(string environmentName) { if (Exists(environmentName)) { throw new ArgumentException($"Cannot create environment, environment {environmentName} already exists."); } SigmaEnvironment environment = new SigmaEnvironment(environmentName); //do environment initialisation and registration ActiveSigmaEnvironments.Set(environmentName, environment); ClazzLogger.Info($"Created and registered sigma environment \"{environmentName}\"."); return(environment); }