Exemplo n.º 1
0
 public LoginController(SignInManager <ApplicationUser> signInManager, UserManager <ApplicationUser> userManager, ISMService smService, IConfiguration configuration)
 {
     _signInManager = signInManager;
     _userManager   = userManager;
     _smService     = smService;
     _configuration = configuration;
 }
 public RegisterController(SignInManager <ApplicationUser> signInManager, UserManager <ApplicationUser> userManager, ISMService smService, RoleManager <IdentityRole> roleManager)
 {
     _signInManager = signInManager;
     _userManager   = userManager;
     _smService     = smService;
     _roleManager   = roleManager;
 }
Exemplo n.º 3
0
 public TwoFactorController(IConfiguration configuration, ISMService smService, SignInManager <ApplicationUser> signInManager, UserManager <ApplicationUser> userManager, RoleManager <IdentityRole> roleManager)
 {
     _configuration = configuration;
     _signInManager = signInManager;
     _userManager   = userManager;
     _smService     = smService;
     _roleManager   = roleManager;
 }
 public ForgotPasswordController(SignInManager <ApplicationUser> signInManager, UserManager <ApplicationUser> userManager, ISMService smService, IMailKitSender emailSender, RoleManager <IdentityRole> roleManager)
 {
     _signInManager = signInManager;
     _userManager   = userManager;
     _smService     = smService;
     _emailSender   = emailSender;
     _roleManager   = roleManager;
 }
Exemplo n.º 5
0
        public static ISMService GetSendService()
        {
            ISMService sms = (ISMService)Activator.GetObject(typeof(ISMService), ConfigurationManager.AppSettings["ISMService"]);

            return(sms);
        }
Exemplo n.º 6
0
        public static ISMService GetZHSMSPlatService()
        {
            ISMService sr = (ISMService)Activator.GetObject(typeof(ISMService), ConfigurationManager.AppSettings["ZHSMSPlatService"]);

            return(sr);
        }
Exemplo n.º 7
0
        public static ISMService GetZKD()
        {
            ISMService st = (ISMService)Activator.GetObject(typeof(ISMService), ConfigurationManager.AppSettings["Platform"]);

            return(st);
        }