Esempio n. 1
0
        public static void Update(string instance, JobConfig config)
        {
            if (String.IsNullOrEmpty(config.JobName))
            {
                throw new ArgumentException("config.JobName is required.");
            }

            var file = RecommendationsDataFolder.For(instance).GetFile("Config/Jobs/" + config.JobName + ".config");

            file.Write(config);
        }
Esempio n. 2
0
        public static JobConfig Load(string instance, string jobName)
        {
            var file = RecommendationsDataFolder.For(instance).GetFile("Config/Jobs/" + jobName + ".config");

            return(file.Read <JobConfig>());
        }