public SyncDatabase(FirebaseApp app, IFirebaseNetworkConnection connection) { _app = app; _root = new JObject(); _connection = connection; _connection.Received += ConnectionOnReceived; }
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(); }