Base class for weak event managers.
To create a manager for a given event, derive from this class and implement the abstract methods.
| C# |
public abstract class WeakEventManagerBase<T, TSource> : WeakEventManager where T : new(), WeakEventManagerBase<T, TSource> where TSource : class
- T
- type of derived event manager
- TSource
- type of object that raises the event
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| WeakEventManagerBase<(Of <(T, TSource>)>)()()() | Initializes a new instance of the WeakEventManagerBase<(Of <(T, TSource>)>) class | |
| AddListener(TSource, IWeakEventListener) |
Adds a listener.
| |
| CheckAccess()()() | Determines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.) | |
| CurrentManager |
Gets the object used to manage events.
| |
| DeliverEvent(Object, EventArgs) | Delivers the event being managed to each listener. (Inherited from WeakEventManager.) | |
| DeliverEventToList(Object, EventArgs, WeakEventManager..::.ListenerList) | Delivers the event being managed to each listener in the provided list. (Inherited from WeakEventManager.) | |
| Dispatcher | Gets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.) | |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| Item[([(Object])]) | Gets or sets the data being stored for the provided source. (Inherited from WeakEventManager.) | |
| MemberwiseClone()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| ProtectedAddListener(Object, IWeakEventListener) | Adds the provided listener to the provided source for the event being managed. (Inherited from WeakEventManager.) | |
| ProtectedRemoveListener(Object, IWeakEventListener) | Removes a previously added listener from the provided source. (Inherited from WeakEventManager.) | |
| Purge(Object, Object, Boolean) | Removes inactive listener entries from the data list for the provided source. Returns true if some entries were actually removed from the list. (Inherited from WeakEventManager.) | |
| ReadLock | Establishes a read-lock on the underlying data table, and returns an IDisposable. (Inherited from WeakEventManager.) | |
| Remove(Object) | Removes all listeners for the given source. (Inherited from WeakEventManager.) | |
| RemoveListener(TSource, IWeakEventListener) |
Removes a listener.
| |
| ScheduleCleanup()()() | Requests that a purge of unused entries in the underlying listener list be performed on a lower priority thread. (Inherited from WeakEventManager.) | |
| StartListening(Object) |
Starts listening to the event on a given source.
(Overrides WeakEventManager.StartListening(Object).) | |
| StartListeningTo(TSource) |
When overridden in a derived class, starts listening to the event on a given source.
| |
| StopListening(Object) |
Stops listening to the event on a given source.
(Overrides WeakEventManager.StopListening(Object).) | |
| StopListeningTo(TSource) |
When overridden in a derived class, stops listening to the event on a given source.
| |
| ToString()()() | (Inherited from Object.) | |
| VerifyAccess()()() | Enforces that the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.) | |
| WriteLock | Establishes a write-lock on the underlying data table, and returns an IDisposable. (Inherited from WeakEventManager.) |
| Object | ||||
| DispatcherObject | ||||
| WeakEventManager | ||||
| WeakEventManagerBase<(Of <(T, TSource>)>) | ||||
| DataProvider..::.DataRefreshedEventManager | ||||