![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Hi folks, I'm just curious if it is possible to create a Singleton instance of a Web Service? Currently I create my web services in VS 2005, and then in my applications I add the Web Service via 'Add web Reference', which as you know doubt no is a great and easy mechanism for getting the proxy class etc.. al nice and quickly added to the project. However, say in my project I have two forms, and both use the Web reference. Instantiating an instance of the web service in each form, and using when needed, and disposing when finished, must cause a bit of a performance hit (especially in pocket pc). So I was thinking, how can one create a Singleton instance of the web Service and use it throughout the application? Or is there some other mechanism to achieve a similar result? |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |