public MacroPlayer(ConnectionBase connection) { this.Connaction = connection; this.ErrorSubject = new Subject<string>().AddTo(this.Disposables); this.MessageSubject = new Subject<StatusItem>().AddTo(this.Disposables); this.IsExecutingSubject = new BehaviorSubject<bool>(false).AddTo(this.Disposables); this.IsPausingSubject = new BehaviorSubject<bool>(false).AddTo(this.Disposables); this.LogStateSubject = new Subject<bool>().AddTo(this.Disposables); this.Plugins = new PluginManager(); }
public MacroEngine(ConnectionBase connection) { this.Connection = connection; this.nextMessage = null; this.LockingSubject = new BehaviorSubject<bool>(false).AddTo(this.Disposables); this.StatusSubject = new Subject<StatusItem>().AddTo(this.Disposables); this.CancelSubject = new BehaviorSubject<bool>(false).AddTo(this.Disposables); this.LogStateSubject = new Subject<bool>().AddTo(this.Disposables); }