Search documentationEsc

InMemoryChangeFeed<TItem>

Represents a change feed for a given `IItem`

Namespace: Microsoft.Azure.CosmosRepository.ChangeFeed.InMemory
Kind: class

Represents a change feed for a given IItem

public class InMemoryChangeFeed<TItem> where TItem : class, IItem

Type parameters

NameDescription
TItem

Remarks

Creates an instance of an InMemoryRepository

Example

Members

Constructor

InMemoryChangeFeed<TItem>.InMemoryChangeFeed(IRepository<TItem>, IEnumerable<IItemChangeFeedProcessor<TItem>>)

Represents a change feed for a given IItem

public InMemoryChangeFeed(IRepository<TItem> repository, IEnumerable<IItemChangeFeedProcessor<TItem>> changeFeedProcessors)

Parameters

NameTypeDescription
repositoryIRepository{{TItem}}The instance of an InMemoryRepository in which listen to changes
changeFeedProcessorsIItemChangeFeedProcessor{{TItem}}}The processor that will be invoked when changes occur

Creates an instance of an InMemoryRepository

Method

InMemoryChangeFeed<TItem>.Setup()

Set’s up the InMemoryRepository to start listen to changes from the given InMemoryRepository

public void Setup()