public ClaimsPrincipalFactoryDI(UserManager <ApplicationUser> userManager,
                                 RoleManager <ApplicationRole> roleManager,
                                 IOptions <IdentityOptions> optionsAccessor,
                                 [FromServices] ProjectTodoContext context
                                 ) : base(userManager, roleManager, optionsAccessor)
 {
     _context = context;
 }
Example #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;
 }
Example #3
0
 public FetcherController([FromServices] ProjectTodoContext fetcherContext)
 {
     _fetcher = fetcherContext;
 }
Example #4
0
 public TodoController([FromServices] ProjectTodoContext context)
 {
     _context = context;
     _service = new TodoService();
 }