C# Класс AppEventsWM.EventClient

Наследование: IHideObjectMembers
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
Current EventClient

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

Метод Описание
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

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

Метод Описание
EventClient ( ) : System
RunRule ( RuleSet r ) : void

INTERNAL - Runs the specified rule

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

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

Adds a new Ruleset to the event client
public Add ( RuleSet ruleSet ) : EventClient
ruleSet RuleSet The RuleSet to Add
Результат EventClient

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

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
Результат EventClient

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

Loads the Storage Provider and attempts call its LoadEventStore() function
public FromStorage ( IEventStorageProvider storageProvider ) : EventClient
storageProvider IEventStorageProvider An instance of an IEventStorageProvider
Результат EventClient

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

Gets the EventStore to save to storage
public GetEventStore ( ) : EventStore
Результат EventStore

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

Loads the Event History of the current user
public LoadHistory ( EventStore eventStore ) : EventClient
eventStore EventStore The event store loaded from storage
Результат EventClient

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

Manually run a specific RuleSet
public RunRule ( string ruleName ) : EventClient
ruleName string Name of the rule to run
Результат EventClient

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

Runs all Rules in the list
public RunRules ( ) : EventClient
Результат EventClient

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

public SaveEventStore ( ) : EventClient
Результат EventClient

Описание свойств

Current публичное статическое свойство

public static EventClient,AppEventsWM Current
Результат EventClient