Represents a base class to be used as a subject when implementing an Observer design pattern
| C# | Visual Basic | Visual C++ |
public class ObserverSubject<TMessage> : IDisposable
Public Class ObserverSubject(Of TMessage) _ Implements IDisposable
generic<typename TMessage> public ref class ObserverSubject : IDisposable
- TMessage
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| ObserverSubject<(Of <(TMessage>)>)()()() |
Creates a new Acrux.Threading.Specialized.ObserveSubject instance
| |
| Attach(IObserver<(Of <(TMessage>)>)) |
Attaches and observer to the current subject
| |
| Detach(IObserver<(Of <(TMessage>)>)) |
Detaches an observer from the current subejct.
| |
| Dispose(Boolean) |
Disposes of the resources (other than memory) used by the Acrux.Threading.Specialized.ObserverSubject.
| |
| Dispose()()() |
Releases all resources used by the Acrux.Threading.Specialized.ObserverSubject.
| |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()() |
Finalizer to be called by the Garbage Collector to release all unmanaged resources used by the Acrux.Threading.Specialized.ObserverSubject.
(Overrides Object.Finalize()()().) | |
| GetHashCode()()() | Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
| GetType()()() | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| SubjectUniqueId |
The unique id of the subject that can be used to identify it within the boundaries of a process
| |
| ToString()()() | (Inherited from Object.) | |
| Update(TMessage) |
Sends a message to all observers to be updated. Observers that are UI controls will receive the notification in their own thread
and all other observers will receive the message asynchronously in a new thread.
|
| Object | ||
| ObserverSubject<(Of <(TMessage>)>) | ||
| ObserverSubject | ||