Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

WebServiceSoapClient - Singleton?

$
0
0

Hello. I've created a Client Service proxy in a PCL, which accesses an .asmx web service. The proxy is a WebServiceSoapClient class and was created in VS2015 using the Add Service Reference menu option.

I'd like to manage the lifetime of the proxy using a Singleton.

The code in the following link reuses an instance of the proxy for multiple calls to the web service and so I assume it is OK to use the Singleton.

Can anyone confirm?

https://developer.xamarin.com/guides/cross-platform/application_fundamentals/web_services/walkthrough_working_with_WCF/

Thanks
Howard


Viewing all articles
Browse latest Browse all 58056

Trending Articles