Ejemplo n.º 1
0
        public SyncDatabase(FirebaseApp app, IFirebaseNetworkConnection connection)
        {
            _app = app;
            _root = new JObject();

            _connection = connection;
            _connection.Received += ConnectionOnReceived;
        }
Ejemplo n.º 2
0
        public SyncDatabase(FirebaseApp app, IFirebaseNetworkConnection connection)
        {
            _app  = app;
            _root = new JObject();

            _connection           = connection;
            _connection.Received += ConnectionOnReceived;
        }
Ejemplo n.º 3
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();
 }
Ejemplo n.º 4
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();
 }