/// <summary> /// The constructor of the ModelCreator which allows to specify details about the resources /// to be cashed. The details are specified through the parameters of the constructor. /// </summary> /// Specifies the particular Repository where the libraries should be imported to. /// <param name="eaRepository"> /// </param> /// <param name="resourceDescriptor"> /// The resource describtor, which is holding information about storage location, download URI, and resources. /// </param> public LibraryImporter(Repository eaRepository, ResourceDescriptor resourceDescriptor) { repository = eaRepository; this.resourceDescriptor = new ResourceDescriptor(resourceDescriptor); }
///<summary> /// The constructor of the ModelCreator which allows to specify details about the resources /// to be cashed. The details are specified through the parameters of the constructor. ///</summary> public LibraryImporter(Repository eaRepository) { repository = eaRepository; resourceDescriptor = new ResourceDescriptor(); }
public ResourceHandler(ResourceDescriptor resourceDescriptor) { this.resourceDescriptor = resourceDescriptor; }
public void CreateUpccModel(string modelName, string bdtLibraryName, string bieLibraryName, string docLibraryName, ResourceDescriptor standardLibraryResourceDescriptor) { CreateUpccModel(modelName, bdtLibraryName, bieLibraryName, docLibraryName, bLibrary => { var libraryImporter = new LibraryImporter(repository, standardLibraryResourceDescriptor); libraryImporter.StatusChanged += StatusChanged; libraryImporter.ImportStandardCcLibraries(repository.GetPackageByID(bLibrary.Id)); }); }
public ResourceDescriptor(ResourceDescriptor descriptor) { Resources = descriptor.Resources; DownloadUri = descriptor.DownloadUri; StorageDirectory = descriptor.StorageDirectory; }