Beispiel #1
0
 private FirebaseAuth(FirebaseApp app)
 {
     _app          = app;
     _tokenFactory = new Lazy <FirebaseTokenFactory>(() =>
                                                     FirebaseTokenFactory.Create(_app), true);
     _idTokenVerifier = new Lazy <FirebaseTokenVerifier>(() =>
                                                         FirebaseTokenVerifier.CreateIDTokenVerifier(_app), true);
 }
 private FirebaseAuth(FirebaseApp app)
 {
     this.app          = app;
     this.tokenFactory = new Lazy <FirebaseTokenFactory>(
         () => FirebaseTokenFactory.Create(this.app), true);
     this.idTokenVerifier = new Lazy <FirebaseTokenVerifier>(
         () => FirebaseTokenVerifier.CreateIDTokenVerifier(this.app), true);
     this.userManager = new Lazy <FirebaseUserManager>(
         () => FirebaseUserManager.Create(this.app), true);
 }
 internal static FirebaseAuthArgs Create(FirebaseApp app)
 {
     return(new FirebaseAuthArgs()
     {
         TokenFactory = new Lazy <FirebaseTokenFactory>(
             () => FirebaseTokenFactory.Create(app), true),
         IdTokenVerifier = new Lazy <FirebaseTokenVerifier>(
             () => FirebaseTokenVerifier.CreateIDTokenVerifier(app), true),
         UserManager = new Lazy <FirebaseUserManager>(
             () => FirebaseUserManager.Create(app), true),
     });
 }
        private static FirebaseAuth Create(FirebaseApp app)
        {
            var args = new Args
            {
                TokenFactory = new Lazy <FirebaseTokenFactory>(
                    () => FirebaseTokenFactory.Create(app), true),
                IdTokenVerifier = new Lazy <FirebaseTokenVerifier>(
                    () => FirebaseTokenVerifier.CreateIdTokenVerifier(app), true),
                SessionCookieVerifier = new Lazy <FirebaseTokenVerifier>(
                    () => FirebaseTokenVerifier.CreateSessionCookieVerifier(app), true),
                UserManager = new Lazy <FirebaseUserManager>(
                    () => FirebaseUserManager.Create(app), true),
                ProviderConfigManager = new Lazy <ProviderConfigManager>(
                    () => Providers.ProviderConfigManager.Create(app), true),
                TenantManager = new Lazy <TenantManager>(
                    () => Multitenancy.TenantManager.Create(app), true),
            };

            return(new FirebaseAuth(args));
        }