public RestManager(string server, string apipath) : base(server, apipath) { DbManager = new DatabaseManager("settings", ""); SetupUpdateTimer(30); //Update(null, null); }
//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); }
public MainService() { DbManager = new DatabaseManager("settings", "myPass"); ComputerManager = new ComputerManager(); AccountManager = new AccountManager(); //ProcessManager = new ProcessManager(); BrowserManager = new InternetExplorerHistoryReader(); RestService = new RestManager(RestServer, Api); }
// 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); }
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", ""); }
public DataTests() { DbManager = new DatabaseManager("test","nopass"); }
//DatabaseManager dbManager) public ComputerManager() { DbManager = new DatabaseManager("settings",""); SetupUpdateTimer(10800); }