Custom MembershipProvider calling web service
I have written a MembershipProvider that calls a WCF webservice.
It works fine but I am wondering about the creation of the
The examples I have seen of calling a WCF webservice all follow this
MyServiceClient client = new MyServiceClient();
That is what I am doing but I was wondering about the expense of
creating all the MyServiceClient objects.
The Provider is not recreated for every function call so i can create
the MyServiceClient instance in the constructor and use it.
This seems the more obvious way of doing things to me but I wanted to
check if there are object lifetime issues with it or anything other
reason to create everytime?
Any advice appreciated.
|All times are GMT. The time now is 04:12 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.