C# Class AppEventsWM.EventClient

Inheritance: IHideObjectMembers
Afficher le fichier Open project: dkarzon/AppEvents

Méthodes publiques

Свойство Type Description
Current EventClient

Méthodes publiques

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

Méthode Description
EventClient ( ) : System
RunRule ( RuleSet r ) : void

INTERNAL - Runs the specified rule

Method Details

Add() public méthode

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

Fire() public méthode

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

FromStorage() public méthode

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

GetEventStore() public méthode

Gets the EventStore to save to storage
public GetEventStore ( ) : EventStore
Résultat EventStore

LoadHistory() public méthode

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

RunRule() public méthode

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

RunRules() public méthode

Runs all Rules in the list
public RunRules ( ) : EventClient
Résultat EventClient

SaveEventStore() public méthode

public SaveEventStore ( ) : EventClient
Résultat EventClient

Property Details

Current public_oe static_oe property

public static EventClient,AppEventsWM Current
Résultat EventClient