Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / December 2005

Tip: Looking for answers? Try searching our database.

Web Service with permanent object cached?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
df - 06 Dec 2005 16:36 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.