C# Класс BrightstarDB.Models.EventFeed.EventFeedService

The event feed service provides the functional capabilities and uses the data model defined.
Наследование: IEventFeedService
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AssertSubscriber ( string userName, IEnumerable topicsOfInterest ) : void
AssertTopic ( Uri topicId, string label, string description ) : void
EventFeedService ( string storeNane, string connectionString ) : System
GetEventData ( IEvent feedEvent ) : dynamic
GetSubscriberTimeline ( string userName, System.DateTime since ) : IEnumerable

Gets all the events on the subscriber timeline. Optional parameters are since and also how many

GetTopicTimeline ( string topicId, System.DateTime since ) : IEnumerable
RaiseEvent ( string description, System.DateTime when, IEnumerable topicIds, object>.Dictionary eventProperties = null ) : void

Creates a new event and also connects it to all users that are subscribed to any of the topics it is classified by.

RegisterInterest ( string userName, string topicId ) : void
RemoveInterest ( string userName, string topicId ) : void

Приватные методы

Метод Описание
GetDynaStore ( ) : BrightstarDB.Dynamic.DynamicStore

Описание методов

AssertSubscriber() публичный Метод

public AssertSubscriber ( string userName, IEnumerable topicsOfInterest ) : void
userName string
topicsOfInterest IEnumerable
Результат void

AssertTopic() публичный Метод

public AssertTopic ( Uri topicId, string label, string description ) : void
topicId System.Uri
label string
description string
Результат void

EventFeedService() публичный Метод

public EventFeedService ( string storeNane, string connectionString ) : System
storeNane string
connectionString string
Результат System

GetEventData() публичный Метод

public GetEventData ( IEvent feedEvent ) : dynamic
feedEvent IEvent
Результат dynamic

GetSubscriberTimeline() публичный Метод

Gets all the events on the subscriber timeline. Optional parameters are since and also how many
public GetSubscriberTimeline ( string userName, System.DateTime since ) : IEnumerable
userName string Gets timeline for user
since System.DateTime Events since this data should be included
Результат IEnumerable

GetTopicTimeline() публичный Метод

public GetTopicTimeline ( string topicId, System.DateTime since ) : IEnumerable
topicId string
since System.DateTime
Результат IEnumerable

RaiseEvent() публичный Метод

Creates a new event and also connects it to all users that are subscribed to any of the topics it is classified by.
public RaiseEvent ( string description, System.DateTime when, IEnumerable topicIds, object>.Dictionary eventProperties = null ) : void
description string Event description
when System.DateTime Date when the event occured
topicIds IEnumerable A list of the topic ids that classify this event
eventProperties object>.Dictionary A name value collection of all event properties
Результат void

RegisterInterest() публичный Метод

public RegisterInterest ( string userName, string topicId ) : void
userName string
topicId string
Результат void

RemoveInterest() публичный Метод

public RemoveInterest ( string userName, string topicId ) : void
userName string
topicId string
Результат void