public void Stop()
        {
            _serviceHost.Close();
            _serviceHost = null;

            PushBrokerProvider.Instance.StopAllServices(false);

            _notificationCleaner.Stop();
            _notificationCleaner = null;
        }
        public void Stop()
        {
            _serviceHost.Close();
            _serviceHost = null;
            
            PushBrokerProvider.Instance.StopAllServices(false);

            _notificationCleaner.Stop();
            _notificationCleaner = null;
        }
        public void Start()
        {
            XmlConfigurator.Configure();

            _notificationCleaner = new NotificationCleaner(PushServiceConfiguration.GetSection().FeedLifetime);
            _notificationCleaner.Start();

            _serviceHost = new ServiceHost(typeof(PushService));
            _serviceHost.Open();
        }
        public void Start()
        {
            XmlConfigurator.Configure();

            _notificationCleaner = new NotificationCleaner(PushServiceConfiguration.GetSection().FeedLifetime);
            _notificationCleaner.Start();

            _serviceHost = new ServiceHost(typeof(PushService));
            _serviceHost.Open();
        }