FireSharp icon indicating copy to clipboard operation
FireSharp copied to clipboard

Value event handler does not take two arguments

Open rakshithsj30 opened this issue 8 years ago • 1 comments

   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

rakshithsj30 avatar Jun 03 '17 12:06 rakshithsj30

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)"; }); });

Fabricciotcortes avatar Jul 19 '18 19:07 Fabricciotcortes