public MyUserViewModel(IMyUserService CurrentService, BackendDBContext context, IMapper Mapper, TranscationResultHelper transcationResultHelper) { this.CurrentService = CurrentService; this.context = context; mapper = Mapper; TranscationResultHelper = transcationResultHelper; MyUserSort.Initialization(SortConditions); #region 工具列按鈕初始化 Toolbaritems.Add(new ItemModel() { Id = ButtonIdHelper.ButtonIdAdd, Text = "新增", TooltipText = "新增", Type = ItemType.Button, PrefixIcon = "mdi mdi-plus-thick", Align = ItemAlign.Left, }); Toolbaritems.Add(new ItemModel() { Id = ButtonIdHelper.ButtonIdRefresh, Text = "重新整理", TooltipText = "重新整理", PrefixIcon = "mdi mdi-refresh", Align = ItemAlign.Left, }); Toolbaritems.Add("Search"); #endregion }
public UserHelper(AuthenticationStateProvider authenticationStateProvider, IMapper mapper, IMyUserService myUserService) { AuthenticationStateProvider = authenticationStateProvider; Mapper = mapper; MyUserService = myUserService; }
public LoginController(Microsoft.Extensions.Configuration.IConfiguration configuration, IMyUserService myUserService, IOptions <TokenConfiguration> tokenConfiguration) { this.configuration = configuration; this.myUserService = myUserService; this.tokenConfiguration = tokenConfiguration.Value; }
public RoleController(IServiceProvider serviceProvider) { _userManager = serviceProvider.GetRequiredService <UserManager <MyUser> >(); _roleManager = serviceProvider.GetRequiredService <RoleManager <MyRole> >(); _mapper = serviceProvider.GetRequiredService <IMapper>(); _accessor = serviceProvider.GetRequiredService <IHttpContextAccessor>(); _myUserService = serviceProvider.GetRequiredService <IMyUserService>(); }
public LoginModel(IMyUserService myUserService) { #if DEBUG Username = "******"; Password = "******"; PasswordType = ""; #endif this.myUserService = myUserService; }
public LoginModel(IMyUserService myUserService, ILogger <LoginModel> logger) { #if DEBUG Username = "******"; Password = "******"; PasswordType = ""; #endif this.myUserService = myUserService; this.logger = logger; }
public LoginModel(IMyUserService myUserService, ILogger <LoginModel> logger, SystemLogHelper systemLogHelper, IHttpContextAccessor httpContextAccessor) { #if DEBUG Username = "******"; Password = "******"; PasswordType = ""; #endif this.myUserService = myUserService; this.logger = logger; SystemLogHelper = systemLogHelper; HttpContextAccessor = httpContextAccessor; }
public NeedChangePasswordModel(IMyUserService myUserService, ILogger <NeedChangePasswordModel> logger, SystemLogHelper systemLogHelper, IHttpContextAccessor httpContextAccessor, IAccountPolicyService AccountPolicyService, IChangePasswordService changePasswordService) { #if DEBUG NewPassword = ""; AgainPassword = ""; PasswordType = ""; #endif this.myUserService = myUserService; this.logger = logger; SystemLogHelper = systemLogHelper; HttpContextAccessor = httpContextAccessor; AccountPolicyService = AccountPolicyService; this.changePasswordService = changePasswordService; }
public MyUsersController(IServiceProvider serviceProvider) { _productService = serviceProvider.GetRequiredService <IMyUserService>(); _mapper = serviceProvider.GetRequiredService <IMapper>(); _accessor = serviceProvider.GetRequiredService <IHttpContextAccessor>(); }
public LoginController(Microsoft.Extensions.Configuration.IConfiguration configuration, IMyUserService myUserService) { this.configuration = configuration; this.myUserService = myUserService; }
public MyUserController(IMyUserService myUserService, IMapper mapper) { this.myUserService = myUserService; this.mapper = mapper; }
public MyUsersController(IMyUserService myUserService) { _myUserService = myUserService; }