예제 #1
0
파일: POService.cs 프로젝트: lulzzz/simias
        /// <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
        }
예제 #2
0
 /// <summary>
 /// Stop the PO Box manager.
 /// </summary>
 public void Stop()
 {
     subscriber.Enabled = false;
     subscriptionService.Stop();
 }