Class FeedService
- Namespace
- Dynamicweb.Ecommerce.Feeds
- Assembly
- Dynamicweb.Ecommerce.dll
The FeedService class providing methods for querying and saving The Feed Aggregate to and from persistence.
public class FeedService : ICacheStorage<int, Feed>, ICacheStorage<int>, ICacheStorage
- Inheritance
-
FeedService
- Implements
- Inherited Members
Methods
ClearCache()
Clears the cache.
public virtual void ClearCache()
ClearCache(IEnumerable<int>)
Resets the specified keys to the default value for objects stored in the object cache
public virtual void ClearCache(IEnumerable<int> keys)
Parameters
keysIEnumerable<int>Keys to reset
ClearCache(int)
Resets the specified key to the default value for objects stored in the object cache
public virtual void ClearCache(int key)
Parameters
keyintKey to reset
Delete(int)
Deletes the feed.
public virtual void Delete(int feedId)
Parameters
feedIdintThe feed ID.
GetChildFeeds(int)
Gets all feeds in solution.
public virtual IEnumerable<Feed> GetChildFeeds(int feedId)
Parameters
feedIdint
Returns
- IEnumerable<Feed>
The collection of the Feed.
GetFeed(int)
Gets the feed.
public virtual Feed? GetFeed(int feedId)
Parameters
feedIdintThe feed ID.
Returns
GetFeeds()
Gets all feeds in solution.
public virtual IEnumerable<Feed> GetFeeds()
Returns
- IEnumerable<Feed>
The feeds collection excluding folder feedsIsFolder.
GetTopLevelFeeds()
Gets all feeds in solution.
public virtual IEnumerable<Feed> GetTopLevelFeeds()
Returns
- IEnumerable<Feed>
The collection of the Feed.
Save(Feed)
Saves the feed.
public virtual void Save(Feed feed)
Parameters
feedFeedThe feed.