Hi,
I have a question: is ist possible to write a web service which gets a
cached "permanent object" right on initialisation?
Let me point out my example: My web service needs a rsa-key. This key
is stored in a file on the server. Every time I create a new instance
of the web service, the constructor code is processed and the key is
read from the file. Is it possible to enable some kind of caching to
avoid the file access? Or is there a more global constructor so that
the file is read only once?
Thank you in advance.
Dominik
GCR - 07 Dec 2005 10:25 GMT
Have you considered placing the code in the Global.asax, under the
Application_Start event handler? This way you read your key only when the
first instance of your service is created...
> Hi,
>
[quoted text clipped - 10 lines]
>
> Dominik