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, IItemType parameters
| Name | Description |
|---|---|
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
| Name | Type | Description |
|---|---|---|
repository | IRepository{{TItem}} | The instance of an InMemoryRepository in which listen to changes |
changeFeedProcessors | IItemChangeFeedProcessor{{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()