public SendOnlyChangedStrategy(ICourseUpdateQuery courseUpdateQuery, ICourseUpdateSender courseUpdateSender, IConfig config) { this.courseUpdateQuery = courseUpdateQuery; this.config = config; debouncedSendUpdates = ActionHelper.Debounce(() => { if (config.PreviousSendHasError) { courseUpdateSender.SendFullCourse(); } courseUpdateSender.SendCourseUpdates(); }); }
public CourseUpdateSender(ICourseUpdateQuery courseUpdateQuery, IUlearnApiClient ulearnApiClient, IConfig config) { this.courseUpdateQuery = courseUpdateQuery; this.ulearnApiClient = ulearnApiClient; this.config = config; }