Пример #1
0
 /// <summary>
 /// 构造方法
 /// </summary>
 /// <param name="employeeDal"></param>
 /// <param name="logger"></param>
 /// <param name="configuration"></param>
 /// <param name="employeeService"></param>
 /// <param name="roleService"></param>
 /// <param name="menuService"></param>
 /// <param name="functionService"></param>
 public AuthService(EmployeeDAL employeeDal, ILogger <AuthService> logger,
                    Microsoft.Extensions.Configuration.IConfiguration configuration,
                    EmployeeService employeeService, RoleService roleService, MenuService menuService, FunctionService functionService)
 {
     _employeeDal     = employeeDal;
     _logger          = logger;
     _EmployeeService = employeeService;
     _RoleService     = roleService;
     _MenuService     = menuService;
     _FunctionService = functionService;
     _tokenOptions    = TokenProviderOptions.Load(configuration);
 }
 /// <summary>
 /// 构造方法
 /// </summary>
 /// <param name="dal"></param>
 public RoleService(RoleDAL dal)
     : base(dal)
 {
     _MenuService     = ServiceLoader.GetService <MenuService>();
     _FunctionService = ServiceLoader.GetService <FunctionService>();
 }