Checking WCF Service has Free Thread or not..
-
Hi All, How can i check my service has free thread or not? At the time of client request to service i need to check whether service has enough free threads to handle client's request. How can i do that? Thanks Lijo.
-
Hi All, How can i check my service has free thread or not? At the time of client request to service i need to check whether service has enough free threads to handle client's request. How can i do that? Thanks Lijo.
Can any one please give me an idea on this?
-
Hi All, How can i check my service has free thread or not? At the time of client request to service i need to check whether service has enough free threads to handle client's request. How can i do that? Thanks Lijo.
Heya, when you say Thread, are you referring to Ports? If so, the link below suggests a solution of sorts whereby they call the service, catch the exception, then loop. Not elegant, but it would work. I guess checking for free ports may not be possible, as you're looking for free ports on the server, and to check that, you'd need to ask the server, via a port. http://stackoverflow.com/questions/664879/how-to-find-empty-port-to-start-wcf-web-servicehost[^] You may also want to check out the maxUserPort setting as mentioned here: http://msdn.microsoft.com/en-us/library/aa560610(BTS.20).aspx[^] I'm no expert in this area though, and may have got the wrong end of the stick on what you're hoping to do. Hope this helps though. Cheers, JB