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); }
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); }