/// <summary> /// /// </summary> /// <param name="userService"></param> /// <param name="facebookProvider"></param> /// <param name="notifySender"></param> /// <param name="gameService"></param> public UserController(IUserService userService, IFacebookProvider facebookProvider, INotifySenderProvider notifySender, IGameService gameService) { _userService = userService; _facebookProvider = facebookProvider; _notifySender = notifySender; _gameService = gameService; }
/// <summary> /// /// </summary> /// <param name="userService"></param> /// <param name="facebookProvider"></param> public AccountController( IUserService userService, IFacebookProvider facebookProvider) { UserManager = Startup.UserManagerFactory(); _userService = userService; _facebookProvider = facebookProvider; }
/// <summary> /// Contructor /// </summary> public AccountController(UserManager <User> userManager, IConfiguration configuration, IFacebookProvider facebookProvider, IOptions <JwtIssuerOptions> jwtOptions, SignInManager <User> signInManager, IUnitOfWork unitOfWork, IHttpContextAccessor httpCotext, IGooglePlusProvider googleProvider, IEmailSender emailSender) { this.userManager = userManager; this.facebookProvider = facebookProvider; this.signInManager = signInManager; this.unitOfWork = unitOfWork; this.httpCotext = httpCotext; jwtIssuerOptions = jwtOptions.Value; this.googleProvider = googleProvider; this.emailSender = emailSender; }
/// <summary> /// Contructor /// </summary> public AccountController(UserManager <ApplicationUser> userManager, IConfiguration configuration, IFacebookProvider facebookProvider, IOptions <JwtIssuerOptions> jwtOptions, SignInManager <ApplicationUser> signInManager, IUnitOfWork unitOfWork, IHttpContextAccessor httpCotext, IGooglePlusProvider googleProvider, IEmailSender emailSender, IStringLocalizer <ValidationModel> localizerValidation, IStringLocalizer <Account> localizerAccount) { this.userManager = userManager; this.facebookProvider = facebookProvider; this.signInManager = signInManager; this.unitOfWork = unitOfWork; this.httpCotext = httpCotext; jwtIssuerOptions = jwtOptions.Value; this.googleProvider = googleProvider; this.emailSender = emailSender; this.localizerValidation = localizerValidation; this.localizerAccount = localizerAccount; }
public FacebookService(IFacebookProvider facebookClient) { _facebookProvider = facebookClient; }