The concurrency model can be either apartment-threaded or multi-threaded
Question:
- How to ensure that both the Client and Server are operating from within the same concurrency model?
The concurrency model can be either apartment-threaded or multi-threaded
Question:
If you need to know, there's something wrong with your design: the client and server need too much information about one another's internals. Part of the point of client-server is to decouple the two.
That said, then, there is a registry value ThreadingModel.There's an MSDN article on these things as well.
Sometimes you need to know. Two quick examples:
So, the answer -- if you do need to know:
The server and the client must be designed and implemented to support the same or compatible models. Either one of these scenarios will do: