public AuthenticationController(
     IOptions <AuthenticationSettings> authenticationSettingsOptions,
     TokenValidationSettings tokenValidationSettings,
     IUserService userService,
     IMobileUserService mobileUserService,
     IWeixinUserService weixinUserService
     )
 {
     _authenticationSettings  = authenticationSettingsOptions.Value;
     _tokenValidationSettings = tokenValidationSettings;
     _userService             = userService;
     _mobileUserService       = mobileUserService;
     _weixinUserService       = weixinUserService;
 }
예제 #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="authenticationSettingsOptions"></param>
 /// <param name="flashValidationSettingsOptions"></param>
 /// <param name="userService"></param>
 /// <param name="tokenService"></param>
 /// <param name="mobileUserService"></param>
 /// <param name="weixinUserService"></param>
 /// <param name="userActionLogService"></param>
 /// <param name="clientFactory"></param>
 public AuthenticationController(
     IOptions <AuthenticationSettings> authenticationSettingsOptions,
     IUserService userService,
     ITokenService tokenService,
     IMobileUserService mobileUserService,
     IWeixinUserService weixinUserService,
     IUserActionLogService userActionLogService,
     IHttpClientFactory clientFactory
     )
 {
     _authenticationSettings = authenticationSettingsOptions.Value;
     _userService            = userService;
     _tokenService           = tokenService;
     _mobileUserService      = mobileUserService;
     _weixinUserService      = weixinUserService;
     _userActionLogService   = userActionLogService;
     _clientFactory          = clientFactory;
 }