Esempio n. 1
0
 public FirebaseApp(Uri root, string auth = null)
 {
     _rootUri = root;
     _cache = new SyncDatabase(this, new FirebaseNetworkConnection(root, auth));
     _cache.Changed += FireChangeEvents;
     _subscriptions = new SubscriptionDatabase(this, _cache);
     _subProcessor = new SubscriptionProcessor(_shutdownToken.Token);
     GoOnline();
 }
Esempio n. 2
0
 internal FirebaseApp(Uri rootUri, IFirebaseNetworkConnection connection)
 {
     _rootUri = rootUri;
     _cache = new SyncDatabase(this, connection);
     _cache.Changed += FireChangeEvents;
     _subscriptions = new SubscriptionDatabase(this, _cache);
     _subProcessor = new SubscriptionProcessor(_shutdownToken.Token);
     GoOnline();
 }