I have a Library that defines some static variable such as Database address, some static method that does data formatting.
My WCF Service will use that library and open database connection. The problem is, the static variable such as Database address in this library is not initialized, and have to initialize by reading the files on server when application start up.
In ASP.NET I could initialize everything in the Global.asax's Application_Start, in Silverlight's Client side I can initialize everything in App.xml's Application_Startup. But how do I initalize in WCF Service Application Project?
This WCF Service Application will be used with Silverlight, might contains mutiple WCF Service, if I initialize in the WCF Service constructor, then I have to do the same for every Service....
Thanks in advance,
King
There are multiple ways of doing this. You can:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With