Base class for entities' observers.
Inheritance Hierarchy
Object | |
ObserverBase<(Of <(<'TEntity>)>)> |
Assembly: Epic.Core
Declaration Syntax
C# |
public abstract class ObserverBase<TEntity> : IDisposable where TEntity : class
Generic Template Parameters
- TEntity
- Type of the observed entities.
Remarks
On disposition, all observed entities will be unsubscribed.
Members
All Members | Constructors | Methods | |||
Member | Description | |
---|---|---|
ObserverBase<(Of <(<'TEntity>)>)>()()()() |
Initializes a new instance of the observer.
| |
Dispose()()()() |
Unsubscribe all subscriptions done.
| |
Ignore(TEntity) |
Stop observing the specified TEntity.
| |
Observe(TEntity) |
Begin to observe the specified TEntity.
| |
Subscribe(TEntity) |
Subscribe the interesting events of the specified TEntity.
| |
Unsubscribe(TEntity) |
Unsubscribe the subscribed events of the specified TEntity.
|
Exceptions
Exception | Condition |
---|---|
ArgumentNullException |
Is thrown when an argument is null.
|