Esempio n. 1
0
 internal Query(UrlBuilder urlBuilder, string name, Func <Task <string> > idTokenFactory)
 {
     UrlBuilder     = urlBuilder;
     Key            = name;
     IdTokenFactory = idTokenFactory;
     Client         = FirebaseHttpClientFactory.CreateFirebaseDatabaseHttpClient();
 }
Esempio n. 2
0
        public FirebaseDatabase(string databaseUrl, Func <Task <string> > tokenIdFactory)
        {
            DatabaseUrl    = databaseUrl;
            TokenIdFactory = tokenIdFactory;

            Client = FirebaseHttpClientFactory.CreateFirebaseDatabaseHttpClient();
        }
Esempio n. 3
0
        private static FirebaseObservable Create(UrlBuilder urlBuilder, Func <Task <string> > idTokenFactory)
        {
            FirebaseObservable subscription;

            subscription                = new FirebaseObservable();
            subscription.UrlBuilder     = urlBuilder;
            subscription.IdTokenFactory = idTokenFactory;
            subscription.Client         = FirebaseHttpClientFactory.CreateFirebaseDatabaseHttpClient();
            subscription.Client.Timeout = Constants.Timeout;
            subscription.Cache          = new JObject();

            return(subscription);
        }