DataPlace
WeakEventManagerBase<(Of <(T, TSource>)>) Class
CSCS.DataPlace.Common.DataWeakEventManagerBase<(Of <(T, TSource>)>)
Base class for weak event managers. To create a manager for a given event, derive from this class and implement the abstract methods.
Declaration Syntax
C#
public abstract class WeakEventManagerBase<T, TSource> : WeakEventManager
where T : new(), WeakEventManagerBase<T, TSource>
where TSource : class
Generic Template Parameters
T
type of derived event manager
TSource
type of object that raises the event
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
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)
Determines whether the specified Object is equal to the current 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()()()
Returns a String that represents the current Object.
(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.)
Inheritance Hierarchy

Assembly: CS.DataPlace.Common (Module: CS.DataPlace.Common) Version: 2.0.3271.19817