C# Class AppEventsWM.EventClient

Inheritance: IHideObjectMembers
Datei anzeigen Open project: dkarzon/AppEvents

Public Properties

Property Type Description
Current EventClient

Public Methods

Method Description
Add ( RuleSet ruleSet ) : EventClient

Adds a new Ruleset to the event client

Fire ( string eventName, bool runRules ) : EventClient

Fires an event with the given Name

FromStorage ( IEventStorageProvider storageProvider ) : EventClient

Loads the Storage Provider and attempts call its LoadEventStore() function

GetEventStore ( ) : EventStore

Gets the EventStore to save to storage

LoadHistory ( EventStore eventStore ) : EventClient

Loads the Event History of the current user

RunRule ( string ruleName ) : EventClient

Manually run a specific RuleSet

RunRules ( ) : EventClient

Runs all Rules in the list

SaveEventStore ( ) : EventClient

Private Methods

Method Description
EventClient ( ) : System
RunRule ( RuleSet r ) : void

INTERNAL - Runs the specified rule

Method Details

Add() public method

Adds a new Ruleset to the event client
public Add ( RuleSet ruleSet ) : EventClient
ruleSet RuleSet The RuleSet to Add
return EventClient

Fire() public method

Fires an event with the given Name
public Fire ( string eventName, bool runRules ) : EventClient
eventName string The event name to fire
runRules bool Weather or not the Rules should be run
return EventClient

FromStorage() public method

Loads the Storage Provider and attempts call its LoadEventStore() function
public FromStorage ( IEventStorageProvider storageProvider ) : EventClient
storageProvider IEventStorageProvider An instance of an IEventStorageProvider
return EventClient

GetEventStore() public method

Gets the EventStore to save to storage
public GetEventStore ( ) : EventStore
return EventStore

LoadHistory() public method

Loads the Event History of the current user
public LoadHistory ( EventStore eventStore ) : EventClient
eventStore EventStore The event store loaded from storage
return EventClient

RunRule() public method

Manually run a specific RuleSet
public RunRule ( string ruleName ) : EventClient
ruleName string Name of the rule to run
return EventClient

RunRules() public method

Runs all Rules in the list
public RunRules ( ) : EventClient
return EventClient

SaveEventStore() public method

public SaveEventStore ( ) : EventClient
return EventClient

Property Details

Current public_oe static_oe property

public static EventClient,AppEventsWM Current
return EventClient