C# Class BrightstarDB.Models.EventFeed.EventFeedService

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

Public Methods

Method 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

Method Description
GetDynaStore ( ) : BrightstarDB.Dynamic.DynamicStore

Method Details

AssertSubscriber() public method

public AssertSubscriber ( string userName, IEnumerable topicsOfInterest ) : void
userName string
topicsOfInterest IEnumerable
return void

AssertTopic() public method

public AssertTopic ( Uri topicId, string label, string description ) : void
topicId System.Uri
label string
description string
return void

EventFeedService() public method

public EventFeedService ( string storeNane, string connectionString ) : System
storeNane string
connectionString string
return System

GetEventData() public method

public GetEventData ( IEvent feedEvent ) : dynamic
feedEvent IEvent
return dynamic

GetSubscriberTimeline() public method

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

GetTopicTimeline() public method

public GetTopicTimeline ( string topicId, System.DateTime since ) : IEnumerable
topicId string
since System.DateTime
return IEnumerable

RaiseEvent() public method

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
return void

RegisterInterest() public method

public RegisterInterest ( string userName, string topicId ) : void
userName string
topicId string
return void

RemoveInterest() public method

public RemoveInterest ( string userName, string topicId ) : void
userName string
topicId string
return void