private async Task UnloadExtensions(IAppPackage package) { await _dispatcher.RunAsync(DispatcherPriority.Normal, () => { Extensions.Where(e => e.AppExtension.Package.FamilyName == package.FamilyName).ToList() .ForEach(ext => ext.Unload()); }); }
public SettingsViewModel(Authentication authentication, IAppPackage appPackage) : base() { this.appPackage = appPackage; this.AppVersionNumber = appPackage == null ? string.Empty : "v" + appPackage.GetVersionNumber(); this.authentication = authentication; if (authentication != null && !string.IsNullOrEmpty(authentication.ServiceUrl)) { this.ServiceUrl = authentication.ServiceUrl.Replace(HTTPS, string.Empty).Replace(HTTP, string.Empty); } else { this.ServiceUrl = string.Empty; } this.IsBusy = false; }
protected void InitializeAppPackage(IAppPackage appPackage) { this.AppPackage = appPackage; }