Exemplo n.º 1
0
 public AddReplyCommandHandler(IApplicationDbContext context,
                               IBlogConfigService settings,
                               INotificationClientService notificationClientService,
                               ILogger <AddReplyCommandHandler> logger)
 {
     if (null != settings)
     {
         _blogConfig = settings;
     }
     _context = context;
     _notificationClientService = notificationClientService;
     _logger = logger;
 }
Exemplo n.º 2
0
 public AddCommentCommandHandler(IApplicationDbContext context,
                                 IBlogConfigService settings,
                                 ILogger <AddCommentCommandHandler> logger,
                                 INotificationClientService notificationClientService,
                                 IMaskWordFilterService wordFilterService)
 {
     if (null != settings)
     {
         _blogConfig = settings;
     }
     _context                   = context;
     _wordFilterService         = wordFilterService;
     _notificationClientService = notificationClientService;
     _logger = logger;
 }