public virtual void Dispose() { Unsubscribe(); InputSubject.Dispose(); Name = null; Type = null; Value = null; }
/// <summary> /// Sends data through the input to the program it's attached to. /// </summary> /// <param name="data">The data will be deconstructed/cast to the underlying type in the program.</param> public virtual void SetValue(object data) { InputSubject.OnNext(data); Value = data; }
public virtual void Subscribe(Action <dynamic> toCall) { InputDisposable = InputSubject.Subscribe(toCall); }