Click or drag to resize
EventManager Class
Represents and controls the Event subsystem.
Inheritance Hierarchy

Namespace: OpenIIoT.Core.Event
Assembly: OpenIIoT (in OpenIIoT.exe) Version: 0.5.0.39120
Syntax
public sealed class EventManager : Manager, 
	IStateful, IManager, IEventProvider, IProvider, IConfigurable<EventManagerConfiguration>, 
	IEventManager

The EventManager type exposes the following members.

Constructors
  NameDescription
Private methodStatic memberEventManager
Private methodEventManager
Initializes a new instance of the EventManager class.
Top
Properties
  NameDescription
Public propertyAutomaticRestartPending
Gets a value indicating whether the stateful object is pending an automatic restart.
(Inherited from Manager.)
Public propertyConfiguration
Gets the Configuration for the Manager.
Public propertyConfigurationDefinition
Gets the ConfigurationDefinition for the Manager.
Private propertyDependencies
Gets the dictionary of IManagers upon which this Manager depends, keyed on Type name.
(Inherited from Manager.)
Public propertyEventProviderName
Gets or sets the Event Provider name.
(Inherited from Manager.)
Public propertyManagerName
Gets or sets the name of the Manager.
(Inherited from Manager.)
Public propertyRegisteredEvents
Gets the Dictionary, keyed on Type, of registered Events.
Public propertyRegisteredProviders
Gets the Dictionary, keyed on Type, of registered Event Provider instances.
Public propertyState
Gets the current State of the Stateful object.
(Inherited from Manager.)
Top
Methods
  NameDescription
Protected methodChangeState(State)
Changes the State of the Manager to the specified State and fires the StateChanged event.
(Inherited from Manager.)
Protected methodChangeState(State, StopType)
Changes the State of the Manager to the specified State and fires the StateChanged event.
(Inherited from Manager.)
Protected methodChangeState(State, String, StopType)
Changes the State of the Manager to the specified State and fires the StateChanged event.
(Inherited from Manager.)
Public methodConfigure
Configures the Manager using the configuration stored in the Configuration Manager, or, failing that, using the default configuration.
Public methodConfigure(EventManagerConfiguration)
Configures the Manager using the supplied configuration, then saves the configuration to the Model Manager.
Protected methodDependenciesAreAllInState
Examines the State of the IManager s contained within the Dependencies property to ensure each is in a State contained within the supplied list of State s. If not, an error message is added to the return Result.
(Inherited from Manager.)
Protected methodDependencyT
Retrieves the IManager instance matching the specified Type from the Dependencies dictionary.
(Inherited from Manager.)
Private methodDependencyStateChanged
Occurs when the state of a Manager upon which this Manager is dependent changes.
(Inherited from Manager.)
Public methodDispose
Disposes this Manager.
(Inherited from Manager.)
Protected methodDispose(Boolean)
Disposes the restartTimer property.
(Inherited from Manager.)
Public methodStatic memberGetConfigurationDefinition
Returns the ConfigurationDefinition for the Event Manager.
Public methodStatic memberInstantiate
Instantiates and/or returns the EventManager instance.
Public methodIsInState
Determines whether any of the specified State s match the current State.
(Inherited from Manager.)
Private methodProviderEventRaised
Occurs when a monitored Event occurs.
Protected methodRegisterDependencyT
Adds the specified IManager instance of the specified Type to the Dependencies dictionary.
(Inherited from Manager.)
Public methodRegisterProvider(Object)
Registers the specified object with the Event Manager.
Private methodRegisterProvider(Object, DictionaryType, ListString, DictionaryType, ListKeyValuePairString, String)
Registers the specified object with the Event Manager.
Public methodRegisterProviders
Registers each object within the supplied list which implements the IEventProvider interface.
Public methodRestart
Restarts the Manager.
(Inherited from Manager.)
Private methodRestartTimerElapsed
Occurs when the restart timer's interval elapses.
(Inherited from Manager.)
Public methodSaveConfiguration
Saves the configuration to the Configuration Manager.
Protected methodSetup

Executed upon instantiation of all program Managers.

Registers all IManagers in the specified list implementing IEventProvider.

(Overrides ManagerSetup.)
Protected methodShutdown
Executed upon shutdown of the Manager.
(Overrides ManagerShutdown(StopType).)
Public methodStart
Starts the Manager.
(Inherited from Manager.)
Protected methodStartup
Executed upon startup of the Manager.
(Overrides ManagerStartup.)
Public methodStop
Stops the Manager.
(Inherited from Manager.)
Protected methodTeardown
Implements the Manager-specific disposal procedure.
(Inherited from Manager.)
Top
Events
  NameDescription
Public eventStateChanged
Occurs when the State property changes.
(Inherited from Manager.)
Top
Fields
  NameDescription
Private fielddependencies
The dictionary of IManagers upon which this Manager depends, keyed on Type name.
(Inherited from Manager.)
Private fieldStatic memberinstance
The Singleton instance of EventManager.
Private fieldStatic memberlogger
The Logger for this class.
Private fieldrestartTimer
The restart timer, used to automatically restart the Manager following a Stop with pending restart.
(Inherited from Manager.)
Top
Extension Methods
  NameDescription
Public Extension MethodToJson
Serializes and returns as json the specified object.
(Defined by Utility.)
Top
See Also