示例#1
0
        /// <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());
            }
        }
示例#2
0
        /// <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());
        }
示例#3
0
 /// <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());
 }
示例#4
0
 /// <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());
 }