|
Joutsen v0.5.0+12-g5dd5f7e
|
A simple event class that can be used to fire an receive events. More...
Public Member Functions | |
| PayloadEvent (String eventName) | |
| Creates a new instance of an event. More... | |
| virtual void | Fire (TPayload payload) |
Fires the event with the payload. More... | |
| void | Fire (TPayload payload) |
| Informs all listeners that the event was fired and passes the payload to them. More... | |
Properties | |
| string | Name [get] |
| The name of the event which will also be passed to the listeners when the event is fired. More... | |
Properties inherited from Joutsen.Events.Event< TPayload > | |
| String | Name [get] |
| The name of the event which will also be passed to the listeners when the event is fired. More... | |
Events | |
| Action< string, TPayload > | Fired |
| The .NET event that will be fired if the event is fired. More... | |
Events inherited from Joutsen.Events.Event< TPayload > | |
| Action< string, TPayload > | Fired |
| The .NET event that will be fired if the event is fired. More... | |
A simple event class that can be used to fire an receive events.
| TPayload | the type of the payload of the event. The payload will be transfered to the listeners when the event is fired. |
| Joutsen.Events.PayloadEvent< TPayload >.PayloadEvent | ( | String | eventName | ) |
Creates a new instance of an event.
| name | the name of the event |
| System.ArgumentException | if the name is empty, null or consists only of wihtespace characters |
|
virtual |
Fires the event with the payload.
| payload | the payload to send |
Implements Joutsen.Events.Event< TPayload >.
Reimplemented in Joutsen.Events.AggregatingEvent< TPayload >.
|
get |
The name of the event which will also be passed to the listeners when the event is fired.
Implements Joutsen.Events.Event< TPayload >.
| Action<string, TPayload> Joutsen.Events.PayloadEvent< TPayload >.Fired |
The .NET event that will be fired if the event is fired.