C# Class Open.Core.Common.PackageDownloadService

Inheritance: IPackageDownloadService
Datei anzeigen Open project: philcockfield/Open.TestHarness.SL

Public Methods

Method Description
DownloadAsync ( Uri packageUri, CallbackAction callback ) : void

Starts the downloading of a XAP package.

DownloadAsync ( string xapName, CallbackAction callback ) : void

Starts the downloading of a XAP package.

InitializeContainer ( ) : PackageDownloadService

Initializes the MEF container in such a way that the Downloader service can operate (call this at startup exactly once).

Method Details

DownloadAsync() public method

Starts the downloading of a XAP package.
public DownloadAsync ( Uri packageUri, CallbackAction callback ) : void
packageUri System.Uri The URI of the XAP file to download.
callback CallbackAction The callback to invoke when the operation is complete.
return void

DownloadAsync() public method

Starts the downloading of a XAP package.
public DownloadAsync ( string xapName, CallbackAction callback ) : void
xapName string The name of the XAP file to download (assumes that it is within the ClientBin of the hosting site).
callback CallbackAction The callback to invoke when the operation is complete.
return void

InitializeContainer() public static method

Initializes the MEF container in such a way that the Downloader service can operate (call this at startup exactly once).
public static InitializeContainer ( ) : PackageDownloadService
return PackageDownloadService