public CreatePostCommandHandler(IDieteticSNSDbContext context, IMapper mapper, IImageService imageService, ICurrentUserService userService) { _context = context; _mapper = mapper; _imageService = imageService; _userService = userService; }
public CreateCommentLikeCommandHandler(IDieteticSNSDbContext context, IMapper mapper, ICurrentUserService userService, IWallService wallService, IMediator mediator) { _context = context; _mapper = mapper; _userService = userService; _wallService = wallService; _mediator = mediator; }
public CurrentUserService(IHttpContextAccessor httpContextAccessor, IDieteticSNSDbContext context, IWebHostEnvironment hostingEnvironment) { _httpContextAccessor = httpContextAccessor; _context = context; _hostingEnvironment = hostingEnvironment; var id = _httpContextAccessor.HttpContext?.User?.FindFirstValue(ClaimTypes.NameIdentifier); if (id != null) { _user = _context.Users .Include(x => x.Followers) .Include(x => x.Followings) .Include(x => x.Posts) .SingleOrDefault(x => x.Id == int.Parse(id)); } }
public CreateNotificationCommandHandler(IDieteticSNSDbContext context, IMapper mapper, INotificationService notificationService) { _context = context; _mapper = mapper; _notificationService = notificationService; }
public UpdatePostCommandHandler(IDieteticSNSDbContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public SeedDataCommandHandler(IDieteticSNSDbContext context, UserManager <User> userManager, RoleManager <IdentityRole <int> > roleManager) { _context = context; _userManager = userManager; _roleManager = roleManager; }
public CreateCommentReportCommandHandler(IDieteticSNSDbContext context, IMapper mapper, ICurrentUserService userService) { _context = context; _mapper = mapper; _userService = userService; }
public UnfollowUserCommandHandler(IDieteticSNSDbContext context, IMediator mediator) { _context = context; _mediator = mediator; }
public FollowUserCommandHandler(IDieteticSNSDbContext context, IMapper mapper, IMediator mediator) { _context = context; _mapper = mapper; _mediator = mediator; }
public DeletePostReportsCommandHandler(IDieteticSNSDbContext context) { _context = context; }
public DeleteNotificationCommandHandler(IDieteticSNSDbContext context) { _context = context; }
public CreateCountryCommandHandler(IDieteticSNSDbContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public BlockUserCommandHandler(IDieteticSNSDbContext context) { _context = context; }
public DeleteCommentCommandHandler(IDieteticSNSDbContext context) { _context = context; }
public DeleteAvatarCommandHandler(IDieteticSNSDbContext context, IImageService imageService, ICurrentUserService userService) { _context = context; _imageService = imageService; _userService = userService; }
public DeletePostCommandHandler(IDieteticSNSDbContext context, IImageService imageService) { _context = context; _imageService = imageService; }
public ReadNotificationsCommandHandler(IDieteticSNSDbContext context, ICurrentUserService userService) { _context = context; _userService = userService; }
public UpdateNotificationsCommandHandler(IDieteticSNSDbContext context, IMapper mapper, ICurrentUserService userService) { _context = context; _mapper = mapper; _userService = userService; }