Hi,
I have a method which returns 1 or 0 after some transactions. I wonder if there is a way to return 1 or 0 before the transactions? The reason is because there is a mechanism that waits for this return value and it is more important than the transaction itself.
This is my sample method:
public string retDrawProgram(System.Data.DataSet dsDrawProgram, string sDrawNumber, string sDataRevision)
{
//Here is my transactions
return 1;
}
VulpesPosted Mar 13, 2012, 11:07 AM
// do something with value
RaysefoPosted Mar 13, 2012, 10:52 AM
The mechanism which triggers this web service method, somehow could NOT get the returning value on time (or something like that) and keeps on trying to call this method. Thats why I want to send the return value immediately.
RaysefoPosted Mar 13, 2012, 10:47 AM
This is an interesting idea. How can I build such a structure? Can you please tell me more detailly?
Best Regards.
VulpesPosted Mar 13, 2012, 10:40 AM
one to return 1 or 0
the other to do the transactions
If you need these to run concurrently, you could call the transactions method on a separate thread.