Click here to Skip to main content
15,305,754 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I 'm sending request to the WCF service based on that getting response as a FCFS but i want the response based on the time set..for example first i send request by setting 5 min time considered it as A another one set a time with 2min considered it as B i need the immediate response for the B bez i set a time 2 min for B and 5min for A. I need response for B before getting response of A.

1 solution

I have not tried this, may be this approach can work.

1. Pass the delay in minutes as one of the parameter in request.
2. Set a thread in server and make the thread to sleep for the minutes sent in request.

This is a general idea, please make sure you consider the performance of the service, instantiating etc. before implementing it.

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