Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WCF and WF
  4. Checking WCF Service has Free Thread or not..

Checking WCF Service has Free Thread or not..

Scheduled Pinned Locked Moved WCF and WF
questioncsharpwcf
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lijo Rajan
    wrote on last edited by
    #1

    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.

    L J 2 Replies Last reply
    0
    • L Lijo Rajan

      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.

      L Offline
      L Offline
      Lijo Rajan
      wrote on last edited by
      #2

      Can any one please give me an idea on this?

      1 Reply Last reply
      0
      • L Lijo Rajan

        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.

        J Offline
        J Offline
        JohnLBevan
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups