3

Does the ServiceBehavior setting InstanceContextMode.Single sets a single instance regardless of the number of endpoints?

1 Answer 1

3

Yes, you will get only one instance with InstanceContextMode.Single, regardless of the number of endpoints.

1
  • So it means if use loadbalncer(I mean hosting the wcf stuff on more than 1 server and having multiple endpoints), using Singelton mode is not a correct one!?. Adding ConcurrencyMode = ConcurrencyMode.Multiple to sinlgelton also might not help as there is just one instance of the service!
    – patricgh
    Oct 16, 2012 at 14:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.