Navigation Menu

Skip to content

bubbafat/FirebaseSharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FirebaseSharp 2.0

A (new) Firebase API for .NET.

This is the alpha FirebaseSharp 2.0 library - some things are broken, other are missing. There are many happy accidents that seem to work.

Usage

Create the FirebaseApp object

// this is IDisposable ... please clean up when done!
FirebaseApp app = new FirebaseApp(new Uri("https://dinosaur-facts.firebaseio.com/") /*, <auth token> */);

Subscribe to a location

var scoresRef = app.Child("scores");

Perform a query

scoresRef.OrderByValue()
         .LimitToLast(3)
         .On("value", (snapshot, child, context) => {
  foreach (var data in snapshot.Children) {
    Console.WriteLine("The {0} dinosaur\'s score is {1}",
                        data.Key, data.Value<int>());
   }
});

About

A C# client for Firebase.io

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages