Does the ServiceBehavior setting InstanceContextMode.Single sets a single instance regardless of the number of endpoints?
Asked
Active
Viewed 536 times
3
Jader Dias
- 88,211
- 155
- 421
- 625
1 Answers
3
Yes, you will get only one instance with InstanceContextMode.Single, regardless of the number of endpoints.
Daniel Vassallo
- 337,827
- 72
- 505
- 443
-
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 '12 at 14:46