Beispiel #1
0
        /// <summary>
        /// Stops the Schedule Object
        /// </summary>
        public void Stop()
        {
            // Stop has been called
            _stopCalled = true;

            // Stop the register agent
            _registerAgent.Stop();

            // Stop the requiredfiles agent
            _scheduleAndRfAgent.Stop();

            // Stop the Schedule Manager Thread
            _scheduleManager.Stop();

            // Stop the LibraryAgent Thread
            _libraryAgent.Stop();

            // Stop the LogAgent Thread
            _logAgent.Stop();

            // Stop the subsriber thread
            _xmrSubscriber.Stop();

            // Clean up any NetMQ sockets, etc (false means don't block).
            NetMQ.NetMQConfig.Cleanup(false);

            // Stop the embedded server
            _server.Stop();
        }
Beispiel #2
0
        /// <summary>
        /// Stops the Schedule Object
        /// </summary>
        public void Stop()
        {
            // Stop has been called
            _stopCalled = true;

            // Stop the register agent
            _registerAgent.Stop();

            // Stop the requiredfiles agent
            _scheduleAndRfAgent.Stop();

            // Stop the Schedule Manager Thread
            _scheduleManager.Stop();
            _scheduleManager.OnInterruptNow          -= _scheduleManager_OnInterruptNow;
            _scheduleManager.OnInterruptPausePending -= _scheduleManager_OnInterruptPausePending;
            _scheduleManager.OnInterruptEnd          -= _scheduleManager_OnInterruptEnd;

            // Stop the LibraryAgent Thread
            _libraryAgent.Stop();

            // Stop the LogAgent Thread
            _logAgent.Stop();

            // Stop the Proof of Play Thread
            StatManager.Instance.Stop();

            // Stop the subsriber thread
            _xmrSubscriber.Stop();

            // Clean up any NetMQ sockets, etc (false means don't block).
            NetMQ.NetMQConfig.Cleanup(false);

            // Stop the embedded server
            _server.Stop();
        }