FireSharp
FireSharp copied to clipboard
Value event handler does not take two arguments
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
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)"; }); });