Esempio n. 1
0
        private void LoadRepository(IPath address)
        {
            if (address.AbsolutePath.EndsWith(".manifest"))
            {
                LoadManifest(address);
                return;
            }
            if (!address.AbsolutePath.EndsWith(".repository"))
                address = address.Combine("/" + Defaults.Repository);

            JsonFileHandler<ScriptRepository> repository_handler = new JsonFileHandler<ScriptRepository>();
            repository_handler.ReadComplete += repository_handler_LoadComplete;
            repository_handler.ReadError += repository_handler_LoadError;
            repository_handler.ReadAsync(address);
        }
Esempio n. 2
0
 private void LoadManifest(IPath address)
 {
     JsonFileHandler<ScriptManifest> manifest_handler = new JsonFileHandler<ScriptManifest>();
     manifest_handler.ReadComplete += manifest_handler_LoadComplete;
     manifest_handler.ReadError += manifest_handler_LoadError;
     manifest_handler.ReadAsync(address);
 }