コード例 #1
0
ファイル: UserService.cs プロジェクト: jriley15/jthreads-api
 public UserService(IHttpContextAccessor contextAccessor, UserManager <ApplicationUser> userManager, IMapper mapper, JThreadsDbContext context, IConfiguration configuration)
 {
     _contextAccessor = contextAccessor;
     _userManager     = userManager;
     _mapper          = mapper;
     _context         = context;
     _configuration   = configuration;
 }
コード例 #2
0
 public CommentService(JThreadsDbContext context, UserService userService, IMapper mapper, GuestService guestService, IMemoryCache memoryCache)
 {
     _context      = context;
     _userService  = userService;
     _guestService = guestService;
     _mapper       = mapper;
     _cache        = memoryCache;
 }
コード例 #3
0
 public NamespaceService(JThreadsDbContext context, IMapper mapper, UserService userService)
 {
     _context     = context;
     _mapper      = mapper;
     _userService = userService;
 }
コード例 #4
0
 public GuestService(IHttpContextAccessor contextAccessor, JThreadsDbContext context, IMapper mapper)
 {
     _contextAccessor = contextAccessor;
     _context         = context;
     _mapper          = mapper;
 }