Table of Contents

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 void ClearCache()

ClearCache(IEnumerable<int>)

Resets the specified keys to the default value for objects stored in the object cache

public void ClearCache(IEnumerable<int> keys)

Parameters

keys IEnumerable<int>

Keys to reset

ClearCache(int)

Resets the specified key to the default value for objects stored in the object cache

public void ClearCache(int key)

Parameters

key int

Key to reset

Delete(int)

Deletes the feed.

public void Delete(int feedId)

Parameters

feedId int

The feed ID.

GetChildFeeds(int)

Gets all feeds in solution.

public IEnumerable<Feed> GetChildFeeds(int feedId)

Parameters

feedId int

Returns

IEnumerable<Feed>

The collection of the Feed.

GetFeed(int)

Gets the feed.

public Feed GetFeed(int feedId)

Parameters

feedId int

The feed ID.

Returns

Feed

The instance of the Feed, or null if the feed was not found.

GetFeeds()

Gets all feeds in solution.

public IEnumerable<Feed> GetFeeds()

Returns

IEnumerable<Feed>

The feeds collection excluding folder feedsIsFolder.

GetTopLevelFeeds()

Gets all feeds in solution.

public IEnumerable<Feed> GetTopLevelFeeds()

Returns

IEnumerable<Feed>

The collection of the Feed.

Save(Feed)

Saves the feed.

public void Save(Feed feed)

Parameters

feed Feed

The feed.

To top