Ejemplo n.º 1
0
 public AccountProvider(IAuthenticationProvider authenticationProvider, ICaptchaProvider captchaProvider,
                        IEmailProvider emailProvider, IMobileProvider mobileProvider)
 {
     _authenticationProvider = authenticationProvider;
     _captchaProvider = captchaProvider;
     _emailProvider = emailProvider;
     _mobileProvider = mobileProvider;
 }
Ejemplo n.º 2
0
 public static IMobileProvider GetMobileProvider()
 {
     Lock.EnterReadLock();
     try
     {
         {
             if (_provider == null)
             {
                 if (MobileMgmt.Configuration.IsMobileMock)
                     _provider = new MockMobileProvider();
                 else
                     _provider = new MobileProvider();
             }
         }
     }
     finally
     {
         Lock.ExitReadLock();
     }
     return _provider;
 }
Ejemplo n.º 3
0
 public Handler(IMailer mailer, IMobileProvider mobileProvider, MongDbContext db)
 {
     _mailer         = mailer;
     _mobileProvider = mobileProvider;
     _db             = db;
 }