Пример #1
0
 /// <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");
 }
Пример #2
0
        /// <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.
        }