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;
}

VulpesRank #55 · 29.2K reputationPosted Mar 13, 2012, 6:40 AM EDT
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.
RaysefoRank #4,173 · 360 reputationPosted Mar 13, 2012, 6:47 AM EDT
This is an interesting idea. How can I build such a structure? Can you please tell me more detailly?
Best Regards.
RaysefoRank #4,173 · 360 reputationPosted Mar 13, 2012, 6:52 AM EDT
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.
VulpesRank #55 · 29.2K reputationPosted Mar 13, 2012, 7:07 AM EDT
// do something with value