The question is about static data in the class.
If this is a class of service, I think the instantiation mode is important. But what happens if I have a separate, standalone singleton class?
Can I create an object there that will be available for all calls on each call? Does IIS have this dll in memory forever, so the singleton will be in memory all the time?
How can I make some object available to all WCF client calls? Is it possible to do this in IIS or should I host the WCF service in a windows service?
source
share