Very new to C# so obviously thought I'd jump in the deep end first.
I want to create a WCF service that provides data from a database to a
large number of clients.
Many clients will try to connect in a very short space of time to
retrieve the same date.
To reduce the round trips to the database I want to cache the data in a
dataset.
Simply put I have a class that provides access to the data in the
dataset but I don't want a new instance of this class and hence a new
data set created every time a client connects.
What I want is for all clients to have access to read from the same set
of data and hence from the same instance of the dataset.
The service is hosted as a windows service, not through IIS.
I am assuming a new instance of the class that implements the service
contract is created with each new client? Is this correct?
Any ideas folks - can provide more info if required.