This repository was archived by the owner on Nov 6, 2024. It is now read-only.
This repository was archived by the owner on Nov 6, 2024. It is now read-only.
Xamarin.Firebase.Database Adding Listeners Question #505
Open
Description
Hello,
Not an issue, a question actually.
When adding a listener for an event on Firebase I assume a communication with Firebase actually happens behind the scenes.
Therefore, ideally, the event attaching operation should be made on backround thread - right?
For example by calling the operation inside the Task.Run method - in code something like the code presented below.
Is that the case or this is not really required since it's handled by Xamarin.Firebase?
Task.Run(()=>{
FirebaseStatusDatabaseReference =
MyFirebaseClient.Instance.GetReference("MyCollectionName").Child("MyKey").Child("Status");
FirebaseStatusChangeEventListener = new MyFirebasetStatusChangeListener();
FirebaseStatusDatabaseReference.AddValueEventListener(FirebaseStatusChangeEventListener);
});
Thanks very much.
Metadata
Metadata
Assignees
Labels
No labels