示例#1
0
        private Course ReloadCourseFromZip(FileInfo zipFile, Encoding encoding = null)
        {
            encoding = encoding == null ? Cp866 : Utf8;
            var course = LoadCourseFromZip(zipFile, encoding);

            courses[course.Id] = course;
            log.Info($"Курс {course.Id} загружен из {zipFile.FullName} и сохранён в памяти");
            exerciseStudentZipsCache.DeleteCourseZips(course.Id);
            ExerciseCheckerZipsCache.DeleteCourseZips(course.Id);
            return(course);
        }
示例#2
0
        private Course ReloadCourseFromZip(FileInfo zipFile)
        {
            var course = LoadCourseFromZip(zipFile);

            courses[course.Id] = course;
            log.Info($"Курс {course.Id} загружен из {zipFile.FullName} и сохранён в памяти");
            if (exerciseStudentZipsCache.IsEnabled)
            {
                exerciseStudentZipsCache.DeleteCourseZips(course.Id);
            }
            return(course);
        }