예제 #1
0
 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;
 }
예제 #2
0
 /// <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;
 }
예제 #3
0
 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;
 }