Exemple #1
0
        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.");
        }
Exemple #2
0
 public WatcherService(XillioApi api)
 {
     this.api = api;
     Start();
 }
Exemple #3
0
 public PingService(XillioApi api)
 {
     this.api = api;
     configurationRefreshDelay = new Timer(600000);
     Start();
 }