public CommentController( ICommentService commentService, IBlogConfig blogConfig, IBlogNotificationClient notificationClient = null) { _blogConfig = blogConfig; _commentService = commentService; _notificationClient = notificationClient; }
public PingbackController( ILogger <PingbackController> logger, IBlogConfig blogConfig, IPingbackService pingbackService, IBlogNotificationClient notificationClient) { _logger = logger; _blogConfig = blogConfig; _pingbackService = pingbackService; _notificationClient = notificationClient; }
public CommentController( ICommentService commentService, IBlogConfig blogConfig, ITimeZoneResolver timeZoneResolver, IBlogNotificationClient notificationClient) { _commentService = commentService; _blogConfig = blogConfig; _timeZoneResolver = timeZoneResolver; _notificationClient = notificationClient; }
public PingbackController( ILogger <PingbackController> logger, IOptions <AppSettings> settings, IBlogConfig blogConfig, IPingbackService pingbackService, IBlogNotificationClient notificationClient) : base(logger, settings) { _blogConfig = blogConfig; _pingbackService = pingbackService; _notificationClient = notificationClient; }
public CommentController( ILogger <CommentController> logger, IOptions <AppSettings> settings, CommentService commentService, IBlogConfig blogConfig, IBlogNotificationClient notificationClient = null) : base(logger, settings) { _blogConfig = blogConfig; _commentService = commentService; _notificationClient = notificationClient; }
public async Task <IActionResult> TestEmail([FromServices] IBlogNotificationClient notificationClient) { await notificationClient.TestNotificationAsync(); return(Ok(true)); }
public PingbackNotificationHandler(IBlogNotificationClient client, ILogger <PingbackNotificationHandler> logger) { _client = client; _logger = logger; }
public CommentNotificationHandler(IBlogNotificationClient client, ILogger <CommentNotificationHandler> logger) { _client = client; _logger = logger; }