Interface IObservable
Represents something that is Observable.
Namespace: Cortex.Net
Assembly: Cortex.Net.dll
Syntax
public interface IObservable : IDependencyNode
Properties
| Improve this Doc View SourceIsBeingObserved
Gets or sets a value indicating whether the observable is being observed. An observable is being observed when at least one derivation actually accesses its value.
Declaration
bool IsBeingObserved { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsPendingUnobservation
Gets or sets a value indicating whether this IObservable is pending Unobservation.
Declaration
bool IsPendingUnobservation { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LastAccessedBy
Gets or sets the Id of the derivation run that last accessed this observable. If this Id equals the RunId of the current derivation the dependency is already established.
Declaration
int LastAccessedBy { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
LowestObserverState
Gets or sets the lowest DerivationState on any of it's observers.
Declaration
DerivationState LowestObserverState { get; set; }
Property Value
Type | Description |
---|---|
DerivationState |
Observers
Gets the Observers.
Declaration
ISet<IDerivation> Observers { get; }
Property Value
Type | Description |
---|---|
ISet<IDerivation> |
Methods
| Improve this Doc View SourceOnBecomeObserved()
Method that at least must be implented to trigger event BecomeObserved.
Declaration
void OnBecomeObserved()
OnBecomeUnobserved()
Method that at least must be implented to trigger event BecomeUnobserved.
Declaration
void OnBecomeUnobserved()
Events
| Improve this Doc View SourceBecomeObserved
Event that will fire after the observable has become observed.
Declaration
event EventHandler BecomeObserved
Event Type
Type | Description |
---|---|
EventHandler |
BecomeUnobserved
Event that will fire after the observable has become unobserved.
Declaration
event EventHandler BecomeUnobserved
Event Type
Type | Description |
---|---|
EventHandler |