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

            _extractor = new ChromeTabsPidExtractor( );
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
 public void UpdateSettings([NotNull] FreezerSettings settings)
 {
     Settings = settings;
 }
Ejemplo n.º 4
0
 public HookManager(FreezerSettings settings, ChromeMonitor monitor)
 {
     Settings = settings;
     Monitor  = monitor;
 }