Light Event Aggregation
Wireframe allows developers to use convention over configuration approach in event aggregation and message passing.
There is no need to do explicit subscriptions for handling events.
The following convention is used:
- Event handler callback methods' name must begin with "Handle" and end with "Event"
- Event handler callback methods must contain only one parameter
Create event handler:
public sealed class ExceptionLogger
public void HandleExceptionEvent(LogExceptionEvent message)
Parse assemblies containing event handlers:
Initialize event handler instance and register it in message passing system:
ExceptionLogger exceptionLogger = new ExceptionLogger().Register();
Send event messages to handlers:
catch (Exception e)
For more details see sample projects with comments in the project source.