Discussion:
Web service client object life cycle
(too old to reply)
Pierre
2008-10-28 18:39:01 UTC
Permalink
From Winform app, I'm calling web service methods. The client app is always
running (synchronizing data between client and server). Is it better to
implement the proxy object whe app start and dispose it when app close, or
is it better to implement the object just before clling the webMethod and
dispose the object after webMethod Returns ??
John Saunders
2008-10-29 00:11:03 UTC
Permalink
Post by Pierre
From Winform app, I'm calling web service methods. The client app is always
running (synchronizing data between client and server). Is it better to
implement the proxy object whe app start and dispose it when app close, or
is it better to implement the object just before clling the webMethod and
dispose the object after webMethod Returns ??
If the application is really going to be using the service the entire time
it's up, then allocate the proxy at the start, and Dispose it on Unload.
--
John Saunders | MVP - Connected System Developer
Continue reading on narkive:
Loading...