Skip to content

Instantly share code, notes, and snippets.

@dev-aritra
Created October 31, 2018 07:25
Show Gist options
  • Save dev-aritra/b4c73ad441df9127de22187208d494e4 to your computer and use it in GitHub Desktop.
Save dev-aritra/b4c73ad441df9127de22187208d494e4 to your computer and use it in GitHub Desktop.
await Task.Run(() => {
var res = _conversation.Message("watson workspace id", mr);
_context = res.Context;
OnWatsonMessagerecieved(JsonConvert.SerializeObject(res, Formatting.Indented));
});
private void OnWatsonMessagerecieved(string data)
{
WatsonMessage message = JsonConvert.DeserializeObject<WatsonMessage>(data);
// Do Stuff here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment