public HomeController(IUserManage userManage, ICategoryManage cateManage, IQuestionManage quesManage, IExamManage examManage)
 {
     _userManage = userManage;
     _cateManage = cateManage;
     _quesManage = quesManage;
     _examManage = examManage;
 }
 public ExamsController(IExamManage examService, ICategoryManage categoryService, IUserManage userManage, IQuestionManage questionManage)
 {
     _examService     = examService;
     _categoryService = categoryService;
     _userManage      = userManage;
     _questionManage  = questionManage;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 查询用户
 /// </summary>
 /// <param name="userManage"></param>
 static void QueryAllUser(IUserManage userManage)
 {
     foreach (var user in userManage.GetUsers().Result)
     {
         Console.WriteLine(user);
     }
 }
Ejemplo n.º 4
0
        /// <summary>
        /// 添加用户
        /// </summary>
        /// <param name="userManage"></param>
        static void AddUser(IUserManage userManage)
        {
            var user = new User {
                ID = DateTime.Now.Millisecond, Name = "李四", Age = 123
            };
            var result = userManage.AddUser(user).Result;

            Console.WriteLine(result);
        }
Ejemplo n.º 5
0
 public AuthorizeFilter(
     IStringLocalizer <SharedResource> localizer
     , IUserManage UserManage
     , ITenantManage TenantManage
     )
 {
     _localizer    = localizer;
     _UserManage   = UserManage;
     _TenantManage = TenantManage;
 }
Ejemplo n.º 6
0
 public ConnectsController(IProjectManage ProjectManage
                           , ITenantManage TenantManage
                           , IUserManage UserManage
                           , IDBConnectManage DBConnectManage)
 {
     _ProjectManage   = ProjectManage;
     _TenantManage    = TenantManage;
     _DBConnectManage = DBConnectManage;
     _UserManage      = UserManage;
 }
Ejemplo n.º 7
0
 public AccessController(IUserManage UserManage
                         , ITenantManage TenantManage
                         , IUserInvitationManage UserInvitationManage
                         , IProjectManage ProjectManage
                         )
 {
     _UserManage           = UserManage;
     _TenantManage         = TenantManage;
     _UserInvitationManage = UserInvitationManage;
     _ProjectManage        = ProjectManage;
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IdentityAppService{TUser,TPrimaryKey}"/> class.
 /// </summary>
 /// <param name="userManage">User Manage.</param>
 /// <param name="appSetting">App Setting.</param>
 /// <param name="httpContext">Http Context Accessor.</param>
 /// <param name="mapper">Mapper.</param>
 public IdentityAppService(
     IUserManage <TUser, TPrimaryKey> userManage,
     IOptions <IdentityAppSetting> appSetting,
     IHttpContextAccessor httpContext,
     IAspireMapper mapper)
 {
     this.userManage  = userManage;
     this.httpContext = httpContext;
     this.mapper      = mapper;
     this.appSetting  = appSetting.Value;
 }
Ejemplo n.º 9
0
 public PagesController(
     IProjectManage ProjectManage
     , ITenantManage TenantManage
     , IModuleManage ModuleManage
     , IPageManage PageManage
     , IDBConnectManage DBConnectManage
     , IUserManage UserManage
     )
 {
     _ProjectManage   = ProjectManage;
     _TenantManage    = TenantManage;
     _ModuleManage    = ModuleManage;
     _PageManage      = PageManage;
     _DBConnectManage = DBConnectManage;
     _UserManage      = UserManage;
 }
Ejemplo n.º 10
0
        static void SystemLogin(ref IUserManage userManage)
        {
            //登录获取Token
            Console.WriteLine("用户名:ggg");
            var userName = "******";

            Console.WriteLine("密码:222222");
            var password = "******";

            var result = userManage.Login(userName, password).GetAwaiter().GetResult();

            Console.WriteLine(Newtonsoft.Json.JsonConvert.SerializeObject(result));
            //初始化通用接口
            userManage = RestService.For <IUserManage>(new HttpClient(new AuthenticatedHttpClientHandler(result.access_token))
            {
                BaseAddress = new Uri("http://localhost:5000")
            });
        }
Ejemplo n.º 11
0
 public UserService(IUserManage manage, IExamDbContext cxt)
 {
     this.userManage = manage;
     this.context    = cxt;
 }
Ejemplo n.º 12
0
 public HomeController(IUserManage userManage, IRoleManage roleManage)
 {
     _userManage = userManage;
     _roleManage = roleManage;
 }
Ejemplo n.º 13
0
 public GlobalFilterAttribute(IUserManage IUserManage)
 {
     UserManage = IUserManage;
 }
Ejemplo n.º 14
0
 public HomeController(IUserManage userManage, IRoleManage roleManage)
 {
     _userManage = userManage;
     _roleManage = roleManage;
 }
Ejemplo n.º 15
0
 public GlobalFilterAttribute(IUserManage IUserManage)
 {
     UserManage = IUserManage;
 }
Ejemplo n.º 16
0
 //构造函数(容器注入)
 public UserService(IUserManage iManage)
 {
     this.iUserManage = iManage;
 }
Ejemplo n.º 17
0
 public UsersController(IAccountService accountService, IUserManage userManage, IWebHostEnvironment webHostEnvironment)
 {
     _accountService     = accountService;
     _userManage         = userManage;
     _webHostEnvironment = webHostEnvironment;
 }
Ejemplo n.º 18
0
 public AdminService(IUserManage manage, IExamDbContext cxt)
 {
     this.adminManage = manage;
     this.context     = cxt;
 }