/// <summary>
        /// 添加抓取到的信息
        /// </summary>
        /// <param name="contentInfo"></param>
        /// <returns></returns>
        protected override void AddContentInfo(CrawlerContentInfo contentInfo, out ResultStatus status)
        {
            ContentInfo info = new ContentInfo()
            {
                Content = contentInfo.Content,
                InformationSource = contentInfo.InformationSource,
                PublishTime = contentInfo.PublishTime,
                Title = contentInfo.Title
            };

            ContentInfoRepository repository = new ContentInfoRepository();

            repository.Create(info, out status);
        }
        internal virtual void Create(ContentInfo entity, out ResultStatus status)
        {
            try
            {
                if (string.IsNullOrEmpty(entity.ID))
                {
                    entity.ID = Guid.NewGuid().ToString();
                }

                context.Set<ContentInfo>().Add(entity);
                context.SaveChanges();

                status = new ResultStatus() { ResultSign = CrawlerResultSign.Success, Message = "添加成功" };
            }
            catch
            {
                status = new ResultStatus() { ResultSign = CrawlerResultSign.Failed, Message = "添加错误" };
            }
        }
        internal virtual void Update(ContentInfo entity, out ResultStatus status)
        {
            try
            {
                if (context.Entry<ContentInfo>(entity).State != EntityState.Modified)
                {
                    var oldeEntity = this.GetByID(entity.ID);
                    var stateEntry = ((IObjectContextAdapter)context).ObjectContext.ObjectStateManager.GetObjectStateEntry(oldeEntity);
                    stateEntry.ApplyCurrentValues(entity);
                    stateEntry.SetModified();
                }
                context.SaveChanges();

                status = new ResultStatus() { ResultSign = CrawlerResultSign.Success, Message = "更新成功" };
            }
            catch
            {
                status = new ResultStatus() { ResultSign = CrawlerResultSign.Failed, Message = "更新错误" };
            }
        }