C# Класс Catel.Modules.DownloadingModuleCatalog

ModuleCatalog that allows the downloading of all modules dynamically based on the ModuleInfo.Ref property.
Наследование: ModuleCatalog, IDownloadingModuleCatalog
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
InnerLoad ( ) : void

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

Приватные методы

Метод Описание
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.

Описание методов

CreateFromXamlAsync() публичный статический Метод

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.
Результат DownloadingModuleCatalog

InnerLoad() защищенный Метод

Does the actual work of loading the catalog. The base implementation does nothing.
protected InnerLoad ( ) : void
Результат void

LoadModule() публичный Метод

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.
Результат void