Catel.Modules.DownloadingModuleCatalog.DownloadModule C# (CSharp) Метод

DownloadModule() приватный Метод

Downloads the module. This method will automatically take care of the pending completed callbacks.
The is null.
private DownloadModule ( ModuleInfo moduleInfo ) : void
moduleInfo Microsoft.Practices.Prism.Modularity.ModuleInfo The module info.
Результат void
        private void DownloadModule(ModuleInfo moduleInfo)
        {
            Argument.IsNotNull("moduleInfo", moduleInfo);

            Log.Info("Downloading module '{0}' from '{1}'", moduleInfo.ModuleName, GetModuleUri(moduleInfo));

            ModuleDownloading.SafeInvoke(this, () => new ModuleEventArgs(moduleInfo));

            var uri = GetModuleUri(moduleInfo);

            var webClient = new WebClient();
            webClient.OpenReadCompleted += OnDownloadModuleCompleted;
            webClient.OpenReadAsync(uri, moduleInfo);
        }