Exemplo n.º 1
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);
        }
Exemplo n.º 2
0
 public virtual Subscription OnValue <T>(Action <T> callback)
 {
     return(FirebaseObservable.ListenValue(UrlBuilder, IdTokenFactory, callback));
 }