C# (CSharp) ApplicationSignInManager примеры использования

C# (CSharp) ApplicationSignInManager - 30 примеров найдено. Это лучшие примеры C# (CSharp) кода для ApplicationSignInManager, полученные из open source проектов. Вы можете ставить оценку каждому примеру, чтобы помочь нам улучшить качество примеров.
Основные методы
Пример #1
0
        public ManageController(ApplicationUserManager userManager, ApplicationSignInManager signInManager, IHangoutRepository hangoutRepository)
        {
            UserManager = userManager;
            SignInManager = signInManager;
            _hangoutRepository = hangoutRepository;

        }
 public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager, IAuthenticationManager authenticationManager, ApplicationRoleManager roleManager)
 {
     this.userManager = userManager;
     this.signInManager = signInManager;
     this.authenticationManager = authenticationManager;
     this.roleManager = roleManager;
 }
Пример #3
0
        public BlogController(IBlogRepository blogRepository, ApplicationUserManager userManager, ApplicationSignInManager signInManager)
        {
            _blogRepository = blogRepository;
            UserManager = userManager;
            SignInManager = signInManager;

        }
 public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager,
     IUserService uService)
     : base(uService)
 {
     UserManager = userManager;
     SignInManager = signInManager;
 }
 public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager,
     ApplicationRoleManager roleManager)
 {
     UserManager = userManager;
     SignInManager = signInManager;
     RoleManager = roleManager;
 }
Пример #6
0
 public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager )
 {
     sendMail = new SendMail();
     UserManager = userManager;
     SignInManager = signInManager;
     usService = new UserService();
 }
 public ManageController(ApplicationUserManager userManager, ApplicationSignInManager signInManager,
     IFileRepository fileRepository)
 {
     UserManager = userManager;
     SignInManager = signInManager;
     _fileRepository = fileRepository;
 }
 protected BaseIdentityController(
     ApplicationUserManager userManager,
     ApplicationSignInManager signInManager)
 {
     UserManager = userManager;
     SignInManager = signInManager;
 }
Пример #9
0
 public HomeController(IDragonUserStore<AppMember> userStore, IFederationService federationService, ApplicationSignInManager signInManager, ApplicationUserManager userManager)
 {
     _userStore = userStore;
     _federationService = federationService;
     _signInManager = signInManager;
     _userManager = userManager;
 }
Пример #10
0
 public ManageController(ApplicationUserManager userManager, ApplicationSignInManager signInManager,
     IPrestadorAppService prestadorApp)
 {
     _userManager = userManager;
     _signInManager = signInManager;
     _prestadorApp = prestadorApp;
 }
Пример #11
0
 public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager,
     ClientBl clientBl)
 {
     UserManager = userManager;
     SignInManager = signInManager;
     _clientBl = clientBl;
 }
Пример #12
0
 public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager, 
     GigbucketDbContext dbContext)
 {
     _userManager = userManager;
     _signInManager = signInManager;
     _dbContext = dbContext;
 }
Пример #13
0
        public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager, IPlanService planService)
        {
            UserManager = userManager;
            SignInManager = signInManager;
            PlanService = planService;

        }
Пример #14
0
 protected BaseController()
 {
     _signInManager = HttpContext.GetOwinContext().Get<ApplicationSignInManager>();
     _userManager = HttpContext.GetOwinContext().GetUserManager<ApplicationUserManager>();
     _context = HttpContext.GetOwinContext().Get<ApplicationDbContext>();
     _docuSignService = HttpContext.GetOwinContext().Get<DocuSignService>();
 }
       public AccountController(
		ApplicationUserManager userManager, 
		ApplicationSignInManager signInManager, 
		IDataService dataService
	) : base(userManager, signInManager, dataService)
       {
       }
 public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager, IPersonBusiness personBusiness)
 {
     UserManager = userManager;
     SignInManager = signInManager;
     _personBusiness = personBusiness;
     UserManager.PersonBusiness = SignInManager.PersonBusiness = personBusiness;
 }
Пример #17
0
            //public UserController(IUserService userService)
            //{
            //    _userService = userService;
            //}

            public UserController(IUserService userService, ApplicationSignInManager signInManager, IRoleService roleService, IAuthenticationManager authenticationManager)
            {
                _userService = userService;
                _signInManager = signInManager;
                _roleService = roleService;
                _authManager = authenticationManager;
            }
Пример #18
0
        public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager, LmsUserManager lmsUserManager)
        {
            UserManager = userManager;
            SignInManager = signInManager;
            _lmsUserManager = lmsUserManager;

        }
Пример #19
0
        public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager )
        {
            UserManager = userManager;
            SignInManager = signInManager;

            InitiateController();
        }
Пример #20
0
 public ManageController(ApplicationSignInManager signinManager, ApplicationUserManager appUserManager, IAuthenticationManager authenticationManager)
     : base(appUserManager)
 {
     AuthenticationManager = authenticationManager;
     UserManager = appUserManager;
     SignInManager = signinManager;
 }
Пример #21
0
 public ManageController(ApplicationUserManager userManager, ApplicationSignInManager signInManager)
 {
     UserManager = userManager;
     SignInManager = signInManager;
     passwordHasher = new PasswordHasher();
     userRepository = new UserRepository();
 }
Пример #22
0
 public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager, ILogAppService logAppService, IPrestadorAppService prestadorAppService)
 {
     _userManager = userManager;
     _signInManager = signInManager;
     _logAppService = logAppService;
     _prestadorAppService = prestadorAppService;
 }
Пример #23
0
 public ProfileController(IProjectService projectService, IAssignmentService assignmentService, ApplicationUserManager userManager, ApplicationSignInManager signInManager)
 {
     this._projectService = projectService;
     this._assignmentService = assignmentService;
     this._userManager = userManager;
     this._signInManager = signInManager;
 }
Пример #24
0
        public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManage, IUsersService usersService)
           : this(usersService)
        {
            this.UserManager = userManager;
            this.SignInManager = signInManager;

        }
Пример #25
0
 public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager, IAuthenticationManager authenticationManager, IInviteRepository inviteRepository)
 {
     this.userManager = userManager;
     this.signInManager = signInManager;
     this.authenticationManager = authenticationManager;
     this.inviteRepository = inviteRepository;
 }
Пример #26
0
 public AccountController(
     ApplicationUserManager userManager,
     ApplicationSignInManager signInManager)
 {
     this.UserManager = userManager;
     this.SignInManager = signInManager;
 }
Пример #27
0
     public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager )
     {
         UserManager = userManager;
         UserManager.UserValidator = new UserValidator<ApplicationUser>(UserManager) { AllowOnlyAlphanumericUserNames = false };
 
         SignInManager = signInManager;
     }
Пример #28
0
        public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager, IPlayerService service)
        {
            UserManager = userManager;
            SignInManager = signInManager;

            this.playerService = service;
        }
Пример #29
0
        public void TestRegister()
        {
            //http://blogs.interknowlogy.com/2014/08/21/mvc-series-part-2-accountcontroller-testing/
            Mock<IEmailer> EmailerMock = new Mock<IEmailer>();
            Mock<IUserStore<ApplicationUser>> userStoreMock = new Mock<IUserStore<ApplicationUser>>();
            ApplicationUserManager userManager = new ApplicationUserManager(userStoreMock.Object);
            //IAuthenticationManager authManager = AuthenticationManager.
            Mock< IAuthenticationManager> authMock = new Mock<IAuthenticationManager>();
            ApplicationSignInManager manager = new ApplicationSignInManager(userManager, authMock.Object);

            AccountController Controller = new AccountController(userManager, manager, EmailerMock.Object);
            Mock<AccountController> ControllerMock = new Mock<AccountController>(EmailerMock.Object);

            Mock<ApplicationUserManager> UserManagerMock = new Mock<ApplicationUserManager>();
            Mock<ApplicationSignInManager> AppSignInManagerMock = new Mock<ApplicationSignInManager>();

            RegisterViewModel vm = new RegisterViewModel()
            {
                UserName    = "Test",
                Email = "test@test.dk",

                UserRole = "Teacher"
            };

            var result = Controller.Register(vm).Result;

            EmailerMock.Verify(a => a.Send());
        }
Пример #30
0
 public BackendLoginController(LocalizationService localizationService, 
     ApplicationSignInManager signInManager,
     UrlAuthorizationFacade urlAuthorization)
 {
     _localizationService = localizationService;
     _signInManager = signInManager;
     _urlAuthorization = urlAuthorization;
 }