public NotificationController( ILogger <NotificationController> logger, IOptions <AppSettings> settings, IMoongladeNotification notification) { _logger = logger; Settings = settings.Value; _notification = notification; }
public async Task <IActionResult> SendTestEmail([FromServices] IMoongladeNotification notification) { var response = await notification.SendTestNotificationAsync(); if (!response.IsSuccess) { Response.StatusCode = StatusCodes.Status500InternalServerError; } return(Json(response)); }
public PingbackService( ILogger <PingbackService> logger, IMoongladeNotification notification, IPingbackReceiver pingbackReceiver, IRepository <PingbackHistoryEntity> pingbackRepository, IRepository <PostEntity> postRepository) : base(logger) { _notification = notification; _pingbackReceiver = pingbackReceiver; _pingbackRepository = pingbackRepository; _postRepository = postRepository; }
public CommentController( ILogger <CommentController> logger, IOptions <AppSettings> settings, CommentService commentService, IMoongladeNotification notification, PostService postService, IBlogConfig blogConfig) : base(logger, settings) { _blogConfig = blogConfig; _commentService = commentService; _notification = notification; _postService = postService; }