Пример #1
0
 public SingalrController(IHubContext <SingalrClient, ISingalrClient> hubContext, ISingalrContent singalrSvc
                          , ITidingsService tidingsService)
 {
     _hubContext     = hubContext;
     _singalrSvc     = singalrSvc;
     _tidingsService = tidingsService;
 }
Пример #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 ArticleService(IArticleRepository articleRepoistory, IUserRepository userRepoistory, ICommentService commentService
                       , ICommentRepository commentRepository, ITidingsService tidingsService, IHttpClientFactory httpClientFactory, ICacheFactory cacheFactory)
 {
     _articleRepoistory = articleRepoistory;
     _userRepoistory    = userRepoistory;
     _commentService    = commentService;
     _commentRepository = commentRepository;
     _tidingsService    = tidingsService;
     _httpClientFactory = httpClientFactory;
     _cacheFactory      = cacheFactory;
 }
Пример #4
0
 public TidingsController(ITidingsService tidingsService)
 {
     _tidingsService = tidingsService;
 }
Пример #5
0
 public TidingsController(ITidingsService tidingsService, IHttpContextAccessor httpContext)
 {
     _tidingsService = tidingsService;
     _httpContext    = httpContext;
 }