示例#1
0
 /// <summary>
 /// 进行初始化
 /// </summary>
 /// <param name="_userManager"></param>
 /// <param name="DB"></param>
 /// <param name="_roleManager"></param>
 public TestController(ICommDB _commdb, UserManager <Users> _userManager, BangumiProjectContext _DB, RoleManager <IdentityRole> _roleManager, IMemoryCache memoryCache)
 {
     this._userManager = _userManager;
     this._DB          = _DB;
     this._roleManager = _roleManager;
     _cache            = memoryCache;
     this._commdb      = _commdb;
 }
示例#2
0
 public FilesController(
     UserManager <User> _userManager,
     ICommDB _DBService,
     IAuthorizationService _authorizationService
     )
 {
     this._userManager          = _userManager;
     this._DBService            = _DBService;
     this._authorizationService = _authorizationService;
 }
 public BangumiSubsController(
     ICommDB _DBServices,
     UserManager <User> _userManager,
     SignInManager <User> _signInManager,
     IAuthorizationService _authorizationService
     )
 {
     this._userManager          = _userManager;
     this._DBServices           = _DBServices;
     this._signInManager        = _signInManager;
     this._authorizationService = _authorizationService;
 }
示例#4
0
 /// <summary>
 /// 依赖注入
 /// </summary>
 /// <param name="_DBService"></param>
 public VideoController(ICommDB _DBService)
 {
     this._DBService = _DBService;
 }
示例#5
0
 /// <summary>
 /// 得到动画的分集信息
 /// </summary>
 public static void GetAnimeNumInfo(int AnimeID, ICommDB _DB)
 {
 }