コード例 #1
0
 public UserController(BlogUserManager userManager, IUserFactory userFactory, IRoleFactory roleFactory, BlogRoleManager roleManager)
 {
     _userManager = userManager;
     _userFactory = userFactory;
     _roleFactory = roleFactory;
     _roleManager = roleManager;
 }
コード例 #2
0
 public IdentityController(IHttpContextAccessor httpContextAccessor, BlogUserManager userManager, BlogRoleManager roleManager, IUserFactory userFactory)
 {
     _httpContextAccessor = httpContextAccessor;
     _userManager         = userManager;
     _roleManager         = roleManager;
     _userFactory         = userFactory;
 }
コード例 #3
0
 public AccountController(IHttpContextAccessor httpContextAccessor, BlogUserManager userManager, BlogRoleManager roleManager, IUserFactory userFactory, BlogSignInManager signInManager)
 {
     _httpContextAccessor = httpContextAccessor;
     _userManager         = userManager;
     _roleManager         = roleManager;
     _userFactory         = userFactory;
     _signInManager       = signInManager;
 }
コード例 #4
0
 public RoleController(BlogRoleManager roleManager, IRoleFactory roleFactory)
 {
     _roleManager = roleManager;
     _roleFactory = roleFactory;
 }
コード例 #5
0
 public BlogDbRepository()
 {
     _ctx = new BlogIdentityDbContext();
     _userManager = new BlogUserManager(new BlogUserStore(_ctx));
     _roleManager = new BlogRoleManager(new RoleStore<BlogRole>(_ctx));
 }
コード例 #6
0
 public HttpApiPermissionActionFilter(BlogRoleManager roleManager, BlogUserManager userManager)
 {
     _roleManager = roleManager;
     _userManager = userManager;
 }