예제 #1
0
 public ClaimsPrincipalFactoryDI(UserManager <ApplicationUser> userManager,
                                 RoleManager <ApplicationRole> roleManager,
                                 IOptions <IdentityOptions> optionsAccessor,
                                 [FromServices] ProjectTodoContext context
                                 ) : base(userManager, roleManager, optionsAccessor)
 {
     _context = context;
 }
예제 #2
0
 public AccountController([FromServices] UserManager <ApplicationUser> userManager,
                          [FromServices] SignInManager <ApplicationUser> signInManager,
                          [FromServices] ProjectTodoContext context,
                          IAntiforgery antiforgery,
                          ILogger <AccountController> logger)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _context       = context;
     _service       = new AccountService();
     _antiforgery   = antiforgery;
     _logger        = logger;
 }
예제 #3
0
 public FetcherController([FromServices] ProjectTodoContext fetcherContext)
 {
     _fetcher = fetcherContext;
 }
예제 #4
0
 public TodoController([FromServices] ProjectTodoContext context)
 {
     _context = context;
     _service = new TodoService();
 }