C# Class BrightstarDB.Models.EventFeed.EventFeedService

The event feed service provides the functional capabilities and uses the data model defined.
Inheritance: IEventFeedService
Afficher le fichier Open project: BrightstarDB/EventFeedModel Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
GetDynaStore ( ) : BrightstarDB.Dynamic.DynamicStore

Method Details

AssertSubscriber() public méthode

public AssertSubscriber ( string userName, IEnumerable topicsOfInterest ) : void
userName string
topicsOfInterest IEnumerable
Résultat void

AssertTopic() public méthode

public AssertTopic ( Uri topicId, string label, string description ) : void
topicId System.Uri
label string
description string
Résultat void

EventFeedService() public méthode

public EventFeedService ( string storeNane, string connectionString ) : System
storeNane string
connectionString string
Résultat System

GetEventData() public méthode

public GetEventData ( IEvent feedEvent ) : dynamic
feedEvent IEvent
Résultat dynamic

GetSubscriberTimeline() public méthode

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
Résultat IEnumerable

GetTopicTimeline() public méthode

public GetTopicTimeline ( string topicId, System.DateTime since ) : IEnumerable
topicId string
since System.DateTime
Résultat IEnumerable

RaiseEvent() public méthode

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
Résultat void

RegisterInterest() public méthode

public RegisterInterest ( string userName, string topicId ) : void
userName string
topicId string
Résultat void

RemoveInterest() public méthode

public RemoveInterest ( string userName, string topicId ) : void
userName string
topicId string
Résultat void