public void Start() { LogService.Clear(); LogService.Log("starting up the service."); api = new XillioApi("http://tenant.localhost:8080/", true); RunAuthentication(); //Setup other services watcher = new WatcherService(api); try { ping = new PingService(api); } catch (Exception e) { LogService.Log(e); throw; } LogService.Log("service started."); }
public WatcherService(XillioApi api) { this.api = api; Start(); }
public PingService(XillioApi api) { this.api = api; configurationRefreshDelay = new Timer(600000); Start(); }