/// <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 }
/// <summary> /// Stop the PO Box manager. /// </summary> public void Stop() { subscriber.Enabled = false; subscriptionService.Stop(); }