C# Classes in a Client server environment
Posted on 2014-11-02
I am attempting to develop a simple client/server application in WCF as a learning exercise. I have a couple of basic questions about the behaviour of classes in the server environment.
1. If there are numerous people on a client/server application and each client creates their own instance of a class (say MyUser ) then as they dip in and out of the server application , how does the server application know which object belongs to which client ?
2. If , in my server application I want to create global variables for each client rather than for all clients on the server then how would I go about this. My understanding is that a static class would make the variables available to everyone.