Пример #1
0
        /// <summary>
        /// Stop the PO service.
        /// </summary>
        public void Stop()
        {
            poBoxSubscriber.Enabled      = false;
            invitationSubscriber.Enabled = false;
#if (!REMOVE_OLD_INVITATION)
            noAccessSubscriber.Enabled = false;

            lock (typeof(POService))
            {
                if (subscriptionService != null)
                {
                    // Stop the subscription thread.
                    subscriptionService.Stop();
                    subscriptionService = null;
                }
            }
#endif
        }