public MainWindow()
 {
     InitializeComponent();
     // set up protocol
     initialGracePeriodBetweenSteps = TimeSpan.FromSeconds(30);
     TimeSpan desync = TimeSpan.FromSeconds(1); // the shutdownsafety and the timer start out in sync. this is a second to desync them
     currentProtocol = new ShutdownSafetyProtocol(initialGracePeriodBetweenSteps - desync);
     currentProtocol.AddRule(new NoMacriumBackupRunningRule());
     currentProtocol.AddRule(new UserIdleRule(userIdleTime));
 }
Beispiel #2
0
        public MainWindow()
        {
            InitializeComponent();
            // set up protocol
            initialGracePeriodBetweenSteps = TimeSpan.FromSeconds(30);
            TimeSpan desync = TimeSpan.FromSeconds(1);             // the shutdownsafety and the timer start out in sync. this is a second to desync them

            currentProtocol = new ShutdownSafetyProtocol(initialGracePeriodBetweenSteps - desync);
            currentProtocol.AddRule(new NoMacriumBackupRunningRule());
            currentProtocol.AddRule(new UserIdleRule(userIdleTime));
        }