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

Properties

Info

Information about the object cache

public virtual CacheInformation Info { get; }

Property Value

CacheInformation

Methods

ClearCache()

Resets all keys to the default value for objects stored in the object 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

keys IEnumerable<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

key int

Key to reset

Delete(int)

Deletes the feed.

public virtual void Delete(int feedId)

Parameters

feedId int

The feed ID.

GetChildFeeds(int)

Gets all feeds in solution.

public virtual IEnumerable<Feed> GetChildFeeds(int feedId)

Parameters

feedId int

Returns

IEnumerable<Feed>

The collection of the Feed.

GetFeed(int)

Gets the feed.

public virtual 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 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

feed Feed

The feed.

SetCacheType<TObjectCache>()

Changes the storage container

public virtual void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<int, Feed>

Type Parameters

TObjectCache
To top