コード例 #1
0
ファイル: MacroPlayer.cs プロジェクト: Boredbone/Terminal
        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();
        }
コード例 #2
0
ファイル: MacroEngine.cs プロジェクト: Boredbone/Terminal
        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);

        }