locked
Having problem with InstanceContextMode.PerSession & ConcurrencyMode.Multiple when hosting WCF by winform RRS feed

  • Question

  • Hi all,

    I developed an WCF, set InstanceContextMode.PerSession &  ConcurrencyMode.Multiple. I used a winform to start and stop WCF service. However, when i created 5 concurrency users to call WCF, it created 5 instances to process the client calls. But when i investigate my log file i saw that all 5 instances use the same thread and process calls sequence. I expected that there should be an interlanced but not.

    Then i tried to using the console app to hosting the WCF, 5 instances use different threads to handle client's calls and i saw the interlance as well.

    Could someone tell me why this happen? I cant explain why the win form hosting working like that? Is there anything behind its scene?

    Thanks.


    Smile
    • Moved by nobugz Wednesday, June 18, 2008 7:06 PM Post to old site
    Wednesday, June 18, 2008 11:32 AM

Answers

All replies