Introduction
This is the documentation for the WinHub&trademark;, a Windows application that ties together independently defined events and actions.
As this product is not yet complete, the current documentation is targeted at a technical level. The intended audience would have some understanding
of:
- XML (for event, action and wire definitions)
- XML Schemas
- Microsoft.NET framework (for plugin development)
Events
Events are triggered by EventPublisher plugins, this could be an X10 Event from the X10 publisher or an Instant Message from the MSNMessagePublisher.
In the .NET framework, the standard EventHandler signature is:
public void MyHandler(Object source, EventArgs arguments)
The EA framework registers with all public events exposed by the EventPublisher. It then checks the typename of the EventArgs from any event raised
and matches it to the Event XML file.
Conditions
EA subsequently checks against the conditions specified in the Events file, if they match the event is raised. A condition can be based
on public properties in the EventArgs derived object or properties within a conditional plugin (for example the Weather plugin).
Wire
Wires are looked up in the Wire XML file that link the event to an action, parameters can be passed from the EventArgs or Conditional plugin through to the Action.
Action
The action is then performed by invoking the execute method. All actions conform to the ICommandProcessor interface.
|