예제 #1
0
        public ApplicationStoreService()
        {
            var    service        = Forms.GetBlazorMobilePlatformServices();
            var    storage        = (ElectronIsolatedStorage)service.GetUserStoreForApplication();
            string userDataFolder = storage.GetUserDataDirectory();

            ApplicationStoreHelper.SetPackageFolder(Path.Combine(userDataFolder, Consts.Constants.PackageStoreDirectoryName));
        }
예제 #2
0
 public bool RemovePackage(string name)
 {
     return(ApplicationStoreHelper.RemovePackage(name));
 }
예제 #3
0
 public IEnumerable <string> ListPackages()
 {
     return(ApplicationStoreHelper.ListPackages());
 }
예제 #4
0
 public Func <Stream> GetPackageStreamResolver(string name)
 {
     return(ApplicationStoreHelper.GetPackageStreamResolver(name));
 }
예제 #5
0
 public Task <bool> AddPackageAsync(string name, Stream content)
 {
     return(ApplicationStoreHelper.AddPackageAsync(name, content));
 }
예제 #6
0
 public bool AddPackage(string name, Stream content)
 {
     return(ApplicationStoreHelper.AddPackage(name, content));
 }
        public ApplicationStoreService()
        {
            string internalStorage = Environment.GetFolderPath(Environment.SpecialFolder.Personal);

            ApplicationStoreHelper.SetPackageFolder(Path.Combine(internalStorage, Consts.Constants.PackageStoreDirectoryName));
        }
예제 #8
0
        public ApplicationStoreService()
        {
            string libraryCache = Environment.GetFolderPath(Environment.SpecialFolder.InternetCache);

            ApplicationStoreHelper.SetPackageFolder(Path.Combine(libraryCache, Consts.Constants.PackageStoreDirectoryName));
        }