示例#1
0
 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;
        }
示例#3
0
 protected void InitializeAppPackage(IAppPackage appPackage)
 {
     this.AppPackage = appPackage;
 }