0

We have a WCF ServiceHost, wich has a few different Endpoints. One of the Endpoints uses MSMQ. Now we have the Problem, that the Server uses multiple Threads to read from this Endpoint! Is it possible to tell WCF to allow only one Thread using this Endpoint? So that I read one Message after another?

Jochen Kühner
  • 1,385
  • 2
  • 18
  • 43

1 Answers1

0

You can set the ConcurrencyMode on the WCF service, take a look here at this link, it should help with your issue.

This link might also be helpful Should WCF service typically be singleton or not?

Community
  • 1
  • 1
Christian Phillips
  • 18,399
  • 8
  • 53
  • 82
  • I think using ConcurrencyMode might be a problem as it is part of the service behavior and will impact all the endpoints. – vibhu Jul 18 '13 at 09:25
  • Yes, that changes Behavior for all Clients. And ConcurrencyMode default is "Single" so I don't know what I could do with it, because I didn't change it and I have multiple Threads created from WCF! – Jochen Kühner Jul 19 '13 at 03:06