Skip to content
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
@fdhsdrdark

Description

@fdhsdrdark

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions