public UsersController(UserManager <ApplicationUser> userManager, RoleManager <IdentityRole> roleManager, IUserRelationService userRelationService, IUserService userService, ILogger <UsersController> logger) { this._userRelationService = userRelationService; this._userService = userService; this._logger = logger; this._userManager = userManager; this._roleManager = roleManager; }
/// <summary> /// ctor the Mighty /// </summary> public UserController(IUnitOfWorkFactory <BrewgrContext> unitOfWorkFactory, IUserService userService, IUserRelationService userRelationService, IUserResolver userResolver, IRecipeService recipeService, INotificationService notificationService) { this.UnitOfWorkFactory = unitOfWorkFactory; this.UserService = userService; this.UserRelationService = userRelationService; this.UserResolver = userResolver; this.RecipeService = recipeService; this.NotificationService = notificationService; }
public AccountController( UserManager <ApplicationUser> userManager, RoleManager <IdentityRole> roleManager, SignInManager <ApplicationUser> signInManager, IOptions <IdentityCookieOptions> identityCookieOptions, IEmailSender emailSender, ISmsSender smsSender, ILoggerFactory loggerFactory, IUserService userService, IUserRelationService userRelationService) { _userManager = userManager; _roleManager = roleManager; _signInManager = signInManager; _externalCookieScheme = identityCookieOptions.Value.ExternalCookieAuthenticationScheme; _emailSender = emailSender; _smsSender = smsSender; _logger = loggerFactory.CreateLogger <AccountController>(); _userService = userService; _userRelationService = userRelationService; }