public void Stop()
        {
            if (reomveThread != null)
            {
                try
                {
                    reomveThread.Abort();
                    reomveThread = null;
                }
                catch (Exception e)
                {
                    Log.Error(LogTags.ExtremeVision, "CameraAlarmListener.Stop:" + e.Message);
                }
            }

            if (httpListener != null)
            {
                try
                {
                    httpListener.Stop();
                    httpListener = null;
                }
                catch (Exception e)
                {
                    Log.Error(LogTags.ExtremeVision, "CameraAlarmListener.Stop:" + e.Message);
                }
            }
        }
        public CameraAlarmListener(string url, int saveMode, string saveDir)
        {
            this.Url      = url;
            this.SaveMode = saveMode;
            this.SaveDir  = saveDir;

            httpListener             = new MyHttpListener(url);
            httpListener.OnReceived += (json) =>
            {
                return(ParseCameraAlarm(url, json));
            };
        }