コード例 #1
0
 /// <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);
 }
コード例 #2
0
 ///<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();
 }
コード例 #3
0
 public ResourceHandler(ResourceDescriptor resourceDescriptor)
 {
     this.resourceDescriptor = resourceDescriptor;
 }
コード例 #4
0
 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));
     });
 }
コード例 #5
0
 public ResourceDescriptor(ResourceDescriptor descriptor)
 {
     Resources        = descriptor.Resources;
     DownloadUri      = descriptor.DownloadUri;
     StorageDirectory = descriptor.StorageDirectory;
 }