コード例 #1
0
 public ArticleController(IArticleService articleService, IArticleRepository articleRepository, IHttpContextAccessor httpContext
                          , IUserService userService, IEventHandler <NotifyValidation> notifyValidationHandler)
 {
     _articleService          = articleService;
     _articleRepository       = articleRepository;
     _httpContext             = httpContext;
     _userService             = userService;
     _notifyValidationHandler = (NotifyValidationHandler)notifyValidationHandler;
 }
コード例 #2
0
 public UserController(IUserService userService, IEventHandler <NotifyValidation> notifyValidationHandler
                       , ICacheClient cacheClient, IHttpContextAccessor httpContext, ITidingsService tidingsService
                       , IArticleService articleService)
 {
     _userService             = userService;
     _notifyValidationHandler = (NotifyValidationHandler)notifyValidationHandler;
     _cacheClient             = cacheClient;
     _httpContext             = httpContext;
     _tidingsService          = tidingsService;
     _articleService          = articleService;
 }
コード例 #3
0
 public LoginController(IUserService userService, ICacheClient cacheClient, IEventHandler <NotifyValidation> notifyValidationHandler)
 {
     _userService             = userService;
     _notifyValidationHandler = (NotifyValidationHandler)notifyValidationHandler;
     _cacheClient             = cacheClient;
 }