What is best practice when instantiating a web service
- by chrystad
I have a class library (c#) with many methods that call the same web service (asmx).
What is the best practice for instantiating the web service.
Instantiate the web service once and pass it as a parameter to each method
Or instantiate and dispose the web service in each method.