/// <summary> /// Applies the <see cref="_removeCategories"/> and <see cref="_addCategories"/> specified by the user. /// </summary> private void RemoveAndAdd(ICategoryIntegrationManager integrationManager, Feed feed, AppEntry appEntry) { if (_removeCategories.Any()) { integrationManager.RemoveAccessPointCategories(appEntry, _removeCategories.ToArray()); } if (_addCategories.Any()) { integrationManager.AddAccessPointCategories(appEntry, feed, _addCategories.ToArray()); } }
/// <summary> /// Applies the <see cref="_removeCategories"/> and <see cref="_addCategories"/> specified by the user. /// </summary> private void RemoveAndAdd(ICategoryIntegrationManager integrationManager, Feed feed, AppEntry appEntry) { if (_removeCategories.Any()) integrationManager.RemoveAccessPointCategories(appEntry, _removeCategories.ToArray()); if (_addCategories.Any()) integrationManager.AddAccessPointCategories(appEntry, feed, _addCategories.ToArray()); }
/// <summary> /// Applies the <see cref="_removeCategories"/> specified by the user. /// </summary> private void RemoveOnly(ICategoryIntegrationManager integrationManager, FeedUri interfaceUri) { integrationManager.RemoveAccessPointCategories(integrationManager.AppList[interfaceUri], _removeCategories.ToArray()); }