private void _statisticWorker_DoWork(object sender, DoWorkEventArgs e)
 {
     try {
         var log = new updateLogRequest(_currentInstance, _currentConfiguration);
         lock (log)
             log.sendRequest(1);
     }
     catch {
     }
 }
        private void downloadConfig()
        {
            //Updatekonfiguration herunterladen
            byte[] rawUpdateConfiguration =
                webclient.DownloadData(internalHelper.prepareUpdateLocation(_controllerInstance.updateLocation) + "update.xml");
            var sContainer = new SecureContainer();

            sContainer.Load(rawUpdateConfiguration);
            currentConfiguration = Serializer.Deserialize(sContainer.Content);

            //Signatur der Updatekonfiguration überprüfen

            /*string publicKey = (string.IsNullOrEmpty(_controllerInstance.publicKey) ? currentConfiguration.PublicKey : _controllerInstance.publicKey);
             * if (!Core.RSA.validateSign(sContainer.Content, sContainer.Signature, publicKey))
             *      throw new Exception(Language.GetString("searchProvider_invalidSignatureException"));*/

            //Sende Statistiken über die Updateanfrage
            var log = new updateLogRequest(_controllerInstance, currentConfiguration);

            lock (log)
                log.sendRequest(0);
        }
		private void downloadConfig() {
			//Updatekonfiguration herunterladen
			byte[] rawUpdateConfiguration =
				webclient.DownloadData(internalHelper.prepareUpdateLocation(_controllerInstance.updateLocation) + "update.xml");
			var sContainer = new SecureContainer();
			sContainer.Load(rawUpdateConfiguration);
			currentConfiguration = Serializer.Deserialize(sContainer.Content);

			//Signatur der Updatekonfiguration überprüfen
			/*string publicKey = (string.IsNullOrEmpty(_controllerInstance.publicKey) ? currentConfiguration.PublicKey : _controllerInstance.publicKey);
			if (!Core.RSA.validateSign(sContainer.Content, sContainer.Signature, publicKey))
				throw new Exception(Language.GetString("searchProvider_invalidSignatureException"));*/

			//Sende Statistiken über die Updateanfrage
			var log = new updateLogRequest(_controllerInstance, currentConfiguration);
			lock (log)
				log.sendRequest(0);
		}
		private void _statisticWorker_DoWork(object sender, DoWorkEventArgs e) {
			try {
				var log = new updateLogRequest(_currentInstance, _currentConfiguration);
				lock (log)
					log.sendRequest(1);
			}
			catch {
			}
		}