C# Class Catel.Modules.DownloadingModuleCatalog

ModuleCatalog that allows the downloading of all modules dynamically based on the ModuleInfo.Ref property.
Inheritance: ModuleCatalog, IDownloadingModuleCatalog
Datei anzeigen Open project: Catel/Catel Class Usage Examples

Public Methods

Method Description
CreateFromXamlAsync ( Uri builderResourceUri, Action completedCallback = null ) : DownloadingModuleCatalog

Creates a ModuleCatalog from a XAML that is located on the internet. This method creates the ModuleCatalog asynchronously.

LoadModule ( string moduleName, System.Action completedCallback ) : void

Loads a specific module.

Protected Methods

Method Description
InnerLoad ( ) : void

Does the actual work of loading the catalog. The base implementation does nothing.

Private Methods

Method Description
DownloadModule ( ModuleInfo moduleInfo ) : void

Downloads the module. This method will automatically take care of the pending completed callbacks.

GetModuleUri ( ModuleInfo moduleInfo ) : Uri

Gets the Uri of the specified module.

LoadModules ( List modules, System.Action completedCallback ) : void

Loads a list of modules in the right order.

OnDownloadModuleCompleted ( object sender, OpenReadCompletedEventArgs e ) : void

Called when the download of a module has been completed.

OnModuleCatalogXmlCompleted ( object sender, DownloadStringCompletedEventArgs e ) : void

Called when the web client has finished downloading.

Method Details

CreateFromXamlAsync() public static method

Creates a ModuleCatalog from a XAML that is located on the internet. This method creates the ModuleCatalog asynchronously.
The is null.
public static CreateFromXamlAsync ( Uri builderResourceUri, Action completedCallback = null ) : DownloadingModuleCatalog
builderResourceUri System.Uri The builder resource URI.
completedCallback Action The completed callback, can be null.
return DownloadingModuleCatalog

InnerLoad() protected method

Does the actual work of loading the catalog. The base implementation does nothing.
protected InnerLoad ( ) : void
return void

LoadModule() public method

Loads a specific module.
The is null or whitespace. The is null.
public LoadModule ( string moduleName, System.Action completedCallback ) : void
moduleName string Name of the module.
completedCallback System.Action The completed callback.
return void