Beispiel #1
0
 private CommentProcessorPipeline GetCommentProcessor(CommentEntity commentEntity)
 {
     _akismetService = new Akismet.Akismet(SettingsRepository.BlogAkismetKey,
                                           SettingsRepository.BlogAkismetUrl,
                                           Request.UserAgent);
     return(new CommentProcessorPipeline(_commentsRepository, SettingsRepository, _akismetService, _errorLogger, commentEntity, GetRequestData()));
 }
Beispiel #2
0
 public static AkismetStatus SubmitHam(this AkismetStatus commentStatus, IAkismetService akismet)
 {
     if (commentStatus.IsHam)
     {
         akismet.SubmitHam(commentStatus.Comment);
     }
     return(commentStatus);
 }
Beispiel #3
0
 public static AkismetStatus SubmitHam(this AkismetStatus commentStatus, IAkismetService akismet)
 {
     if (commentStatus.IsHam)
     {
         akismet.SubmitHam(commentStatus.Comment);
     }
     return commentStatus;
 }
Beispiel #4
0
 public CommentProcessorPipeline(IComment commentRepository, ISettings settingsRepository, IAkismetService akismetService, IError error, CommentEntity commentEntity, RequestData requestData)
 {
     _commentRepository = commentRepository;
     _settingsRepository = settingsRepository;
     _akismetService = akismetService;
     _error = error;
     _commentEntity = commentEntity;
     _requestData = requestData;
 }
 public CommentProcessorPipeline(IComment commentRepository, ISettings settingsRepository, IAkismetService akismetService, IError error, CommentEntity commentEntity, RequestData requestData)
 {
     _commentRepository  = commentRepository;
     _settingsRepository = settingsRepository;
     _akismetService     = akismetService;
     _error         = error;
     _commentEntity = commentEntity;
     _requestData   = requestData;
 }
Beispiel #6
0
 public static AkismetStatus CheckIfSpamOrHam(this AkismetStatus commentStatus, IAkismetService akismet)
 {
     commentStatus.IsSpam = akismet.CommentCheck(commentStatus.Comment);
     commentStatus.IsHam  = !commentStatus.IsSpam;
     return(commentStatus);
 }
Beispiel #7
0
 private CommentProcessorPipeline GetCommentProcessor(CommentEntity commentEntity)
 {
     _akismetService = new Akismet.Akismet(SettingsRepository.BlogAkismetKey,
                                           SettingsRepository.BlogAkismetUrl,
                                           Request.UserAgent);
     return new CommentProcessorPipeline(_commentsRepository, SettingsRepository, _akismetService, _errorLogger, commentEntity, GetRequestData());
 }
 public PingbackService()
 {
     _store = AutofacConfig.IoC.Resolve<IDocumentStore>();
     _akismetService = AutofacConfig.IoC.Resolve<IAkismetService>();
 }
Beispiel #9
0
 public static AkismetStatus CheckIfSpamOrHam(this AkismetStatus commentStatus, IAkismetService akismet)
 {
     commentStatus.IsSpam = akismet.CommentCheck(commentStatus.Comment);
     commentStatus.IsHam = !commentStatus.IsSpam;
     return commentStatus;
 }
 //public IAkismetService AkismetService { get; set; }
 //public PostCommentController()
 public PostCommentController(IAkismetService akismetService)
 {
     _akismetService = akismetService;
 }
Beispiel #11
0
 public AkismetPipeline(IAkismetService akismetService)
 {
     _akismetService = akismetService;
 }
Beispiel #12
0
 public AkismetPipeline(IAkismetService akismetService)
 {
     _akismetService = akismetService;
 }
 public ServicesController(IAkismetService akismetService)
 {
     _akismetService = akismetService;
 }