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