I am getting an error on this function
private void Login_Click(object sender, RoutedEventArgs e)
{
var auth0 = new Auth0Client("sample.auth0.com", "iRyFSIfQaeG4KXKd36D3CEPxkPyJ0Ekk");
auth0.LoginAsync(new WindowWrapper(new WindowInteropHelper(this).Handle))
.ContinueWith(
t => { this.textBox1.Text = t.Result.Profile.ToString(); },
TaskScheduler.FromCurrentSynchronizationContext());
}
Error Message:
Task does not contain a definition for result and no extension method accepting Result accepting first argument of type task could be found.
The Error is thrown on the line t.Result.Profile.ToString()
I am fairly new to Task Concept.Please help!