Esempio n. 1
0
 public RestManager(string server, string apipath)
     : base(server, apipath)
 {
     DbManager = new DatabaseManager("settings", "");
     SetupUpdateTimer(30);
     //Update(null, null);
 }
Esempio n. 2
0
 //DatabaseManager dbManager)
 public InternetExplorerHistoryReader()
 {
     DbManager = new DatabaseManager("settings", "");
     var key = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\Internet Explorer");
     if (key != null)
         Version = new Version((string)key.GetValue("Version"));
     SetupUpdateTimer(5);
 }
Esempio n. 3
0
 public MainService()
 {
     DbManager = new DatabaseManager("settings", "myPass");
     ComputerManager = new ComputerManager();
     AccountManager = new AccountManager();
     //ProcessManager = new ProcessManager();
     BrowserManager = new InternetExplorerHistoryReader();
     RestService = new RestManager(RestServer, Api);
 }
Esempio n. 4
0
 //                                                                  60 min
 public AccountManager( double interval = 5, double updateInterval = 3600)
 {
     Interval = interval;
     DbManager = new DatabaseManager("settings","");
     SetupUpdateTimer(Interval);
     SetupLockoutTimer(Interval);
     SetupLoggingTimer(Interval);
     manager = new TerminalServicesManager();
     //ForceUpdate();
     Update(null, null);
 }
Esempio n. 5
0
        public ProcessManager()
        {
            Console.WriteLine("Process Manager Started");

            manager = new TerminalServicesManager();

            UpdateTimer = new Timer(5000){AutoReset = true};
            UpdateTimer.Elapsed += Update;
            UpdateTimer.Start();

            DbManager = new DatabaseManager("settings", "");
        }
Esempio n. 6
0
 public DataTests()
 {
     DbManager = new DatabaseManager("test","nopass");
 }
Esempio n. 7
0
 //DatabaseManager dbManager)
 public ComputerManager()
 {
     DbManager = new DatabaseManager("settings","");
     SetupUpdateTimer(10800);
 }