public UserAnswerService(ApplicationDbContext context, IGameService gameService, IAnswerService answerService, IApplicationUserService applicationUserService) { _context = context; this.gameService = gameService; this.answerService = answerService; this.applicationUserService = applicationUserService; }
public AdminBaseModel() { _httpContextAccessor = Startup.AutofacContainer.Resolve <IHttpContextAccessor>(); _applicationuserService = Startup.AutofacContainer.Resolve <IApplicationUserService>(); _currentUserService = Startup.AutofacContainer.Resolve <ICurrentUserService>(); SetupMenu(); }
public ShoppingCartController(IProductService productService, IApplicationUserService userManager, IOrderService orderService) { _productService = productService; _userManager = userManager; _orderService = orderService; }
public UsersController(IApplicationUserService userService, IRequestTypesService requestTypes, IRequestGetService getService) { applicationUserService = userService; requestTypesService = requestTypes; }
public AccountController(IApplicationUserService applicationUserService, IMapper mapper) { _applicationUserService = applicationUserService ?? throw new ArgumentNullException(nameof(applicationUserService)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public UserApi(ILogger <UserApi> logger, ApplicationDbContext dbContext, ICdnService cdnService, IApplicationUserService applicationUserService) : base(logger) { this.dbContext = dbContext; this.cdnService = cdnService; this.applicationUserService = applicationUserService; }
public ProfileController(UserManager <ApplicationUser> userManager, IApplicationUserService applicationUserService, IUploadService uploadService, IConfiguration configuration) { _userManager = userManager; _applicationUserService = applicationUserService; _uploadService = uploadService; _configuration = configuration; }
public AddSellForm() { InitializeComponent(); applicationUserService = new ApplicationUserService(); itemService = new ItemService(); }
public CategoryBaseModel(ICategoryService categoryService, IApplicationUserService applicationUserService, ICurrentUserService currentUserService) { _categoryService = categoryService; _applicationUserService = applicationUserService; _currentUserService = currentUserService; }
public AccountController(UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IApplicationUserService applicationUserService, IEmailSender emailSender) { _userManager = userManager; _signInManager = signInManager; _applicationUserService = applicationUserService; _emailSender = emailSender; }
public PostController(IPostService postService, IForumService forumService, UserManager <ApplicationUser> userManager, IApplicationUserService applicationUserService) { _postService = postService; _forumService = forumService; _userManager = userManager; _applicationUserService = applicationUserService; }
public IndexModel(IMapper mapper, IWeigtLogService weigtLogManageService, IApplicationUserService applicationUserService) { _mapper = mapper; _weigtLogManageService = weigtLogManageService; _applicationUserService = applicationUserService; }
public CommentAjaxController(IMapper mapper, ICommentService commentService, IApplicationUserService applicationUserService) { _mapper = mapper; _commentService = commentService; _applicationUserService = applicationUserService; s_logger = LogManager.GetCurrentClassLogger(); }
public AppUserRoleController(ApplicationUserManager userManager, IApplicationUserService userService, IApplicationRoleService roleService) { _userManager = userManager; _userService = userService; _roleService = roleService; }
public ThongKeGiaHanController(IThongKeGiaHanService thongKeGiaHanService, IVeThangService veThangService, IApplicationUserService appUser) { _thongKeGiaHanService = thongKeGiaHanService; _veThangService = veThangService; _appUser = appUser; }
public RecordService(IApplicationUserService appUserService, IConsultService consultService, IQuestionService questionService, IAnswerService answerService) { _appUserService = appUserService; _questionService = questionService; _consultService = consultService; _answerService = answerService; }
public PostController(IPostService postService, IForumService forumService, UserManager <ApplicationUser> userManager, IApplicationUserService applicationUserService) { this.postService = postService; this.forumService = forumService; this.userManager = userManager; this.userService = applicationUserService; }
public AccountApi(ISignInManager signInManager, ITokenHelper tokenHelper, ILogger <AccountApi> logger, IApplicationUserService applicationUserService) : base(logger) { this.signInManager = signInManager; this.tokenHelper = tokenHelper; this.applicationUserService = applicationUserService; }
public AdvancedSearchController(IProjectService projectService, IJobService jobService, IApplicationUserService applicationUserService, ApplicationDbContext context) { this.applicationUserService = applicationUserService; this.projectService = projectService; this.jobService = jobService; this.context = context; }
public GameHub(IGameService gameService, IAnswerService answerService, IApplicationUserService applicationUserService, IUserAnswerService userAnswerService) { this.gameService = gameService; this.answerService = answerService; this.applicationUserService = applicationUserService; this.userAnswerService = userAnswerService; }
public ManageController(ApplicationUserManager userManager, ApplicationSignInManager signInManager, IApplicationUserService userService) { UserManager = userManager; SignInManager = signInManager; _userService = userService; }
public AccountController( IUrfIdentityUnitOfWorkAsync uow, IApplicationUserService aus) { _unitOfWork = uow; _applicationUserService = aus; }
public AccountController(IApplicationUserService userService, IRoleService roleService, IClientService clientService, IMusicianService musicianService) { _userService = userService; _roleService = roleService; _clientService = clientService; _musicianService = musicianService; }
public TasksService(ITasksRepository taskRepository, IProjectsService projectsService, IApplicationUserService applicationUserService, IEmployeeTaskRepository employeeTaskRepository) { this.taskRepository = taskRepository; this.projectsService = projectsService; this.applicationUserService = applicationUserService; this.employeeTaskRepository = employeeTaskRepository; }
public UsersController(SignInManager <ApplicationUser> userManager, UserManager <ApplicationUser> user, IApplicationUserService userService, IMapper mapper) { _userManager = userManager; _user = user; _userService = userService; _mapper = mapper; }
public VoteService(IApplicationUserService ApplicationUserService, INewsArticleService NewsArticleService, Repository dbContext) : base(dbContext) { applicationUserService = ApplicationUserService; newsArticleService = NewsArticleService; }
public TableController(IMapper mapper, IWeigtLogManageService weigtLogManageService, IApplicationUserService applicationUserService) { _mapper = mapper; _weigtLogManageService = weigtLogManageService; _applicationUserService = applicationUserService; }
public NewListPageModalViewModel(INavigationService navigationService, IListStore listStore, IApplicationUserService applicationUserService) : base(navigationService) { _applicationUserService = applicationUserService; _listStore = listStore; Title = "New List"; }
public AccountController(IAuthenticateService authService, UserManager <ApplicationUser> userManager, IApplicationUserService applicationUserService) { _authenticateService = authService; _userManager = userManager; _applicationUserService = applicationUserService; }
public override async Task GrantResourceOwnerCredentials(OAuthGrantResourceOwnerCredentialsContext context) { try { IApplicationUserService serviceUser = _container.Resolve <IApplicationUserService>(); ApplicationUserDTO request = new ApplicationUserDTO(); request.Email = context.UserName; request.Password = context.Password; ApplicationUserDTO response = serviceUser.AuthenticateUser(request); if (response == null) { context.SetError("invalid_grant", "Usuário não encontrado!"); return; } var identity = new ClaimsIdentity(context.Options.AuthenticationType); //Definindo as Claims identity.AddClaim(new Claim("Usuario", JsonConvert.SerializeObject(response))); var principal = new GenericPrincipal(identity, new string[] { }); Thread.CurrentPrincipal = principal; context.Validated(identity); } catch (Exception ex) { context.SetError("invalid_grant", ex.Message); return; } }
// Constructors public MembershipController() { IUnitOfWork unitOfWork = RepositoryFactory.GetUnitOfWork("DefaultConnection"); IRepository<ApplicationUser> repository = RepositoryFactory.GetRepository<ApplicationUser>(unitOfWork); IManager<ApplicationUser> applicationUserManager = ManagerFactory.GetManager(repository); this.userService = ServiceFactory.GetApplicationUserService(applicationUserManager); }
// Constructors public StatisticsController() { IUnitOfWork unitOfWork = RepositoryFactory.GetUnitOfWork("DefaultConnection"); IRepository<ApplicationUser> userRepository = RepositoryFactory.GetRepository<ApplicationUser>(unitOfWork); IManager<ApplicationUser> applicationUserManager = ManagerFactory.GetManager(userRepository); this.userService = ServiceFactory.GetApplicationUserService(applicationUserManager); IRepository<Package> packageRepository = RepositoryFactory.GetRepository<Package>(unitOfWork); IManager<Package> packageManager = ManagerFactory.GetManager(packageRepository); this.packageService = ServiceFactory.GetPackageService(packageManager); IRepository<Order> orderRepository = RepositoryFactory.GetRepository<Order>(unitOfWork); IManager<Order> orderManager = ManagerFactory.GetManager(orderRepository); this.orderService = ServiceFactory.GetOrderService(orderManager); }
public ApplicationUserController(IApplicationUserService applicationUserService) { this.applicationUserService = applicationUserService; }
public GroceryListController(IApplicationUserService applicationUserService, IGroceryListService groceryListService) { this.applicationUserService = applicationUserService; this.groceryListService = groceryListService; }