|
Joutsen
v0.4.1
|
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... | |
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.System.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.System.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.System.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.System.Events.Event< TPayload >.
Reimplemented in Joutsen.System.Events.AggregatingEvent< TPayload >.
|
get |
The name of the event which will also be passed to the listeners when the event is fired.
| Action<string, TPayload> Joutsen.System.Events.PayloadEvent< TPayload >.Fired |
The .NET event that will be fired if the event is fired.
1.8.13