C# Class Catel.Modules.DownloadingModuleCatalog

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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
InnerLoad ( ) : void

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

Private Methods

Méthode 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 méthode

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.
Résultat DownloadingModuleCatalog

InnerLoad() protected méthode

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

LoadModule() public méthode

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.
Résultat void