bugthesystem / FireSharp

An asynchronous cross-platform .Net library for Firebase
The Unlicense
693 stars 147 forks source link

Value event handler does not take two arguments #102

Open rakshithsj30 opened 7 years ago

rakshithsj30 commented 7 years ago
   await _client.OnAsync("chat",
                added: (s, args) =>
                {
                    Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
                    {
                        TextBox1.Text = args.Data + " -> 1(ADDED)";
                    });
                });

I am facing problem in this block. I am getting this error "Value event handler does not take two arguments". pls help me

Fabricciotcortes commented 6 years ago

In the last package of Firesharp you have to use 3 arguments: The correct use is await _client.OnAsync("chat", added: (s, args, context) => { Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => { TextBox1.Text = args.Data + " -> 1(ADDED)"; }); });