Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hi,

i try to use watson to send a callback.
Whatson is buildt to create asynchronous connections.

My question is, how can i handle the request.
Like i expected it appears that the result is not here. Because the Server continues on a
other task.

I use C# as fornt and backend.


I store everything in a List <wrapper> requests = List<wrapper>();

class Wrapper
{
public Wrapper(string request)
{

}

//getter and setter for Content
// comperator overloaded
static int id = 0;
}


Would it make sense to store a handle to the requesttask and use the result immediatly if it was recived=?

What I have tried:

I tryd already to store all recived data in a wrapper with a local request ID.
These Packets are then stored in a list so that i can look for my request result.


Is there a special type which is by default capable to notify a special task?
Posted
Updated 1-Feb-21 3:00am

1 solution

I'm afraid your question cannot really be answered in a "quick" answers' forum - you have not provided sufficient code nor an adequate description of your problem.

In response to the title of your post however, I suggest you try the resources at IBM Cloud Pak for Data[^] - they claim to have tutorials and examples, but there is also a support community specifically for Watson.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900