コード例 #1
0
 public PostReactionsController(ILogger <PostReactionsController> logger,
                                IPostService postService,
                                IUserService userService,
                                IPostReactionService postReactionService)
 {
     _logger              = logger;
     _postService         = postService;
     _userService         = userService;
     _postReactionService = postReactionService;
     _logger.LogTrace("PostReactionController created");
 }
コード例 #2
0
 public PostsController(
     IPostsService postsService,
     IUserService userService,
     INotificationService notificationService,
     IPostReactionService postReactionService,
     IHubContext <NotificationHub> notificationHub)
 {
     _postsService        = postsService;
     _userService         = userService;
     _notificationService = notificationService;
     _postReactionService = postReactionService;
     _notificationHub     = notificationHub;
 }