/// <summary> /// Stops the service from executing. /// </summary> public void Stop() { lock (typeof(DiscService)) { if (collectionList != null) { // Stop the CollectionList thread. collectionList.Stop(); collectionList = null; } } log.Debug("Stop called for Discovery"); }
/// <summary> /// Starts the thread service. /// </summary> public void Start() { log.Debug("Start called for Discovery"); lock (typeof(DiscoveryService)) { if (collectionList == null) { // Start the CollectionList thread. collectionList = new CollectionList(); } } // Get a list of all Collections. // Process any active Collection. }