コード例 #1
0
        public LayoutService(ISettingsStore store,
                             ILogger logger,
                             ISchedulerProvider schedulerProvider,
                             IObjectProvider objectProvider,
                             IApplicationStateNotifier stateNotifier)
        {
            _store          = store;
            _logger         = logger;
            _objectProvider = objectProvider;
            schedulerProvider.MainThread.Schedule(Restore);

            stateNotifier.StateChanged.Where(state => state == ApplicationState.ShuttingDown)
            .Subscribe(_ =>
            {
                Write();
            });
        }
コード例 #2
0
ファイル: LayoutService.cs プロジェクト: mgnslndh/TailBlazer
        public LayoutService(ISettingsStore store, 
            ILogger logger,
            ISchedulerProvider schedulerProvider,
            IObjectProvider objectProvider,
            IApplicationStateNotifier stateNotifier)
        {
            _store = store;
            _logger = logger;
            _objectProvider = objectProvider;
            schedulerProvider.MainThread.Schedule(Restore);

            stateNotifier.StateChanged.Where(state => state == ApplicationState.ShuttingDown)
                .Subscribe(_ =>
                {
                    Write();
                });
        }