Thursday, 29 August 2013

taskFactory: WCF service call and wait

taskFactory: WCF service call and wait

I'm calling a WCF service in my multi-threaded program. I'm in need of
calling a WCF service API, where I have to get a repeatedly call Five(or
3) times with a specified interval in-between (These are idempotent
operations, so I can call howmanyever times I want) untill I get a
response or Exception,maybe. How can I insert an interval in my thread so
that my control stays here. One option I is to have Thread.sleep(2000).
Is there any suggestions for doing this ? Thanks !
Also am having a taskFactory to maintain/run my threads.

No comments:

Post a Comment