Class EventPublisher
- Namespace
- QuickLink
- Assembly
- QuickLink.dll
Represents an event publisher that allows subscribing to and publishing events.
public class EventPublisher
- Inheritance
-
EventPublisher
- Inherited Members
Methods
Publish()
Publishes the event, invoking all the subscribed callback methods.
public void Publish()
Subscribe(Action)
Subscribes to the event.
public void Subscribe(Action callback)
Parameters
callback
ActionThe callback method to be invoked when the event is published.
Unsubscribe(Action)
Unsubscribes from the event.
public void Unsubscribe(Action callback)
Parameters
callback
ActionThe callback method to be removed from the subscribers list.