I am designing a WCF web service that will potentially be called 10,000+ plus individual clients at any given time. When the service is called, the service creates the class Object1.
public List<string> AnswerClient() { Object1 _hello = new Object1(); return _hello.AnswerClient(); }
Since the class Object1 must create other classes Object1 inside it. He needs to create other subsets of the Object1 classes. I was thinking about using a static method in the Object1 class to create other Object1 methods, such as
Object1.AnswerClient()
because I donβt think I need to create a specific Object1 () in the first place. If multiple clients call the service, will this Object1.AnswerClient () ruin the code because it is static? Since statics are class specific, do all clients seem to be affected?
How do I create this class. The client calls the service, the service creates an object based on client data. This object inside it creates another 20 similar objects (splits user data depending on the data).
Any help and understanding will help. How should I do this at all?
Thanks.
iefpw source share