public ChromeMonitor(FreezerSettings settings)
        {
            Settings  = settings;
            Pids      = ImmutableList <int> .Empty;
            TabsState = ChromeTabsState.Resumed(Enumerable.Empty <int> ( ));
            State     = ChromeMonitorState.Stopped;

            _extractor = new ChromeTabsPidExtractor( );
        }
Beispiel #2
0
        private static ChromeMonitor CreateMonitor(FreezerSettings settings)
        {
            var monitor = new ChromeMonitor(settings);

            monitor.StateChanged.Subscribe(OnStateChanged);
            monitor.Errors.Subscribe(OnFreezeError);
            monitor.TabsStateChanged.Subscribe(OnTabsStateChanged);
            return(monitor);
        }
 public void UpdateSettings([NotNull] FreezerSettings settings)
 {
     Settings = settings;
 }
Beispiel #4
0
 public HookManager(FreezerSettings settings, ChromeMonitor monitor)
 {
     Settings = settings;
     Monitor  = monitor;
 }