Groups | Blog | Home
all groups > dotnet distributed apps > march 2004 >

dotnet distributed apps : How to stop Updater?



Marty McDonald
3/10/2004 4:27:24 PM
I've written a class that uses the ApplicationUpdateManager. The
ApplicationUpdateManager uses the DownloadManager to perform work. When the
DownloadManager cannot download something properly, I'd like to stop the
ApplicationUpdateManager object. But the DownloadManager does not throw
exceptions or fire events when it has trouble downloading something. It
only uses Debug to write messages.

ApplicationUpdateManager does not fire events or throw exceptions when
DownloadManager has trouble. How can tell when to stop the
ApplicationUpdateManager in this case? Thanks

lukezhan NO[at]SPAM online.microsoft.com
3/11/2004 8:27:37 AM
Hi Marty,

Thank you for using the community.

Regarding the issue, the ApplicationUpdateManager handle the exception with
ExceptionManager application block. When there is an exception, for
example, network connection is broken during download, an exception will be
publiced within ExceptionManager. You can create your own exception handler
based on ExceptionManager architecture to handle the exception. For more
information about ExceptionManager, you may refer to:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/
emab-rm.asp

Additionally, you also can modify the source code of DownloadManager,
exclude ExceptionManager and just throw your own exception anyway.

Hope this help,

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
AddThis Social Bookmark Button