/// <summary> /// Starts the heartbeat service /// </summary> private void InitHeartbeatService() { if (string.IsNullOrWhiteSpace(Settings.HomeId)) { logger.Log("Cannot start home service without a configured home id. What is going on?"); return; } heartbeatService = new HeartbeatService(this, logger); heartbeatService.Start(); }
private void Shutdown() { this.StopAllModules(); this.DisposeAllScouts(); this.Dispose(); if(homeService!=null) homeService.Stop(); this.runningScouts = null; this.runningModules = null; this.runningModulesStates = null; this.registeredPorts = null; this.registeredPorts = null; this.config = null; this.allAddinTokens = null; this.policyEngine = null; //this.gadgetListener = null; this.guiService = null; this.homeService = null; this.infoService = null; this.discoveryHelperService = null; this.heartbeatService = null; this.random = null; GC.Collect(); //finally close the logger object if (logger != null) logger.Close(); }