public void RegisterCreate(ICourseUpdate update) { RegisterUpdate(update); deletedFiles.TryRemove(update.FullPath, out _); createdFiles.AddOrUpdate(update.FullPath, update, (_1, _2) => update); }
public void RegisterDelete(ICourseUpdate update) { updatesQuery.TryRemove(update.FullPath, out _); if (!createdFiles.TryRemove(update.FullPath, out _)) { deletedFiles.AddOrUpdate(update.FullPath, update, (_1, _2) => update); } }
public void RegisterUpdate(ICourseUpdate update) { updatesQuery.AddOrUpdate(update.FullPath, update, (_1, _2) => update); }