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 static AkismetStatus SubmitHam(this AkismetStatus commentStatus, IAkismetService akismet) { if (commentStatus.IsHam) { akismet.SubmitHam(commentStatus.Comment); } return(commentStatus); }
public static AkismetStatus SubmitHam(this AkismetStatus commentStatus, IAkismetService akismet) { if (commentStatus.IsHam) { akismet.SubmitHam(commentStatus.Comment); } return commentStatus; }
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 static AkismetStatus CheckIfSpamOrHam(this AkismetStatus commentStatus, IAkismetService akismet) { commentStatus.IsSpam = akismet.CommentCheck(commentStatus.Comment); commentStatus.IsHam = !commentStatus.IsSpam; return(commentStatus); }
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>(); }
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; }
public AkismetPipeline(IAkismetService akismetService) { _akismetService = akismetService; }
public ServicesController(IAkismetService akismetService) { _akismetService = akismetService; }