More...
|
| SubscriptionToken | Subscribe (Action< TPayload > callback, [CallerFilePath] string sourceFile="", [CallerMemberName] string requestingMethod="(unknown)", [CallerLineNumber] int subscribingSourceLine=-1) |
| | Subscribe to the event.
|
| SubscriptionToken | SubscribeOnce (Action< TPayload > action, [CallerFilePath] string sourceFile="", [CallerMemberName] string requestingMethod="(unknown)", [CallerLineNumber] int subscribingSourceLine=-1) |
| | Subscribe to the event for one iteration only.
|
| SubscriptionToken | LimitedSubscription (Action< TPayload > action, int limit, [CallerFilePath] string sourceFile="", [CallerMemberName] string requestingMethod="(unknown)", [CallerLineNumber] int subscribingSourceLine=-1) |
| | Subscribe to the event for a limited number of notifications.
|
| void | Publish (TPayload data, [CallerFilePath] string sourceFile="", [CallerMemberName] string requestingMethod="(unknown)", [CallerLineNumber] int publishingSourceLine=-1) |
| | Publish this event with some data to all subscribers.
|
| Task | PublishAsync (TPayload data, [CallerFilePath] string sourceFile=null, [CallerMemberName] string requestingMethod=null, [CallerLineNumber] int publishingSourceLine=-1) |
| | Publish the event to all subscribers with the provided data.
|
| void | Unsubscribe (SubscriptionToken token, [CallerFilePath] string sourceFile="", [CallerMemberName] string requestingMethod="(unknown)", [CallerLineNumber] int unsubscribingSourceLine=-1) |
| | Unsubscribe from this event with the provided token.
|
|
void | Unsuspend () |
| | Unsuspend this event.
|
|
void | Suspend () |
| | Suspend this event.
|
|
|
int | SubscriptionCount [get] |
| | The number of subscribers to this event.
|
|
SubscriptionAddedEventHandler | OnSubscriptionAdded [get, set] |
| | Fired when a subscription is added for this event.
|
|
SubscriptionRemovedEventHandler | OnSubscriptionRemoved [get, set] |
| | Fired when a subscription is removed for this event.
|
|
bool | IsSuspended [get] |
| | Flag: is this event suspended.
|
◆ LimitedSubscription()
Subscribe to the event for a limited number of notifications.
- Parameters
-
| action | |
| limit | |
| sourceFile | |
| requestingMethod | |
| subscribingSourceLine | |
- Returns
◆ Publish()
| void PeanutButter.TinyEventAggregator.EventBase< TPayload >.Publish |
( |
TPayload | data, |
|
|
[CallerFilePath] string | sourceFile = "", |
|
|
[CallerMemberName] string | requestingMethod = "(unknown)", |
|
|
[CallerLineNumber] int | publishingSourceLine = -1 ) |
Publish this event with some data to all subscribers.
- Parameters
-
| data | |
| sourceFile | |
| requestingMethod | |
| publishingSourceLine | |
◆ PublishAsync()
| Task PeanutButter.TinyEventAggregator.EventBase< TPayload >.PublishAsync |
( |
TPayload | data, |
|
|
[CallerFilePath] string | sourceFile = null, |
|
|
[CallerMemberName] string | requestingMethod = null, |
|
|
[CallerLineNumber] int | publishingSourceLine = -1 ) |
Publish the event to all subscribers with the provided data.
- Parameters
-
| data | |
| sourceFile | |
| requestingMethod | |
| publishingSourceLine | |
- Returns
◆ Subscribe()
Subscribe to the event.
- Parameters
-
| callback | |
| sourceFile | |
| requestingMethod | |
| subscribingSourceLine | |
- Returns
◆ SubscribeOnce()
Subscribe to the event for one iteration only.
- Parameters
-
| action | |
| sourceFile | |
| requestingMethod | |
| subscribingSourceLine | |
- Returns
◆ Unsubscribe()
Unsubscribe from this event with the provided token.
- Parameters
-
| token | |
| sourceFile | |
| requestingMethod | |
| unsubscribingSourceLine | |
- Exceptions
-
The documentation for this class was generated from the following file:
- source/TinyEventAggregator/PeanutButter.TinyEventAggregator/EventBaseWithPayload.cs