Beispiel #1
0
        /// <summary>
        /// Creates a new instance of WsapmManager.
        /// </summary>
        public WsapmManager()
        {
            this.settingsManager = new SettingsManager();
            LoadSettings();

            // Create managers.
            this.standbyManager  = new StandbyManager();
            this.wakeManager     = new WakeManager();
            this.pluginManager   = new PluginManager();
            this.shutdownManager = new ShutdownManager();

            this.temporaryUptimeManager = new TemporaryUptimeManager();

            this.lastWakeTime = null;

            this.settingsManager.SettingsChanged += settingsManager_SettingsChanged;
            this.temporaryUptimeManager.TemporaryUptimeChanged += TemporaryUptimeManager_TemporaryUptimeChanged;
        }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of TemporaryUptimeCheck.
 /// </summary>
 /// <param name="temporaryUptimeManager"></param>
 private TemporaryUptimeCheck(TemporaryUptimeManager temporaryUptimeManager)
 {
     this.temporaryUptimeManager = temporaryUptimeManager;
 }