Class WeakPropertySubscription
// Weak reference wrapper class for delegate storage without user defined removal.
Inheritance
System.Object
WeakPropertySubscription
Assembly: Eco.Shared.dll
Syntax
public class WeakPropertySubscription : Object, IPropertySubscription, ISubscription
Constructors
WeakPropertySubscription(IObservable, String, Action)
Declaration
public WeakPropertySubscription(IObservable subject, string propertyName, Action callback)
Parameters
Type |
Name |
Description |
IObservable |
subject |
|
System.String |
propertyName |
|
System.Action |
callback |
|
Properties
IsAlive
Declaration
public bool IsAlive { get; }
Property Value
Type |
Description |
System.Boolean |
|
Method
Declaration
public MethodInfo Method { get; }
Property Value
Type |
Description |
System.Reflection.MethodInfo |
|
PropertyName
Declaration
public string PropertyName { get; }
Property Value
Type |
Description |
System.String |
|
Subject
Declaration
public IObservable Subject { get; }
Property Value
Target
Declaration
public object Target { get; }
Property Value
Type |
Description |
System.Object |
|
Methods
Invoke()
Declaration
Unsubscribe()
Declaration
public void Unsubscribe()
Implements
Extension Methods