示例#1
0
 public RegistrationPersistence(StorageFactory storageFactory, RegistrationKey registrationKey, int partitionSize, int packageCountThreshold)
 {
     _storage                 = new RecordingStorage(storageFactory.Create(registrationKey.ToString()));
     _registrationUri         = _storage.ResolveUri("index.json");
     _packageCountThreshold   = packageCountThreshold;
     _partitionSize           = partitionSize;
     _registrationBaseAddress = storageFactory.BaseAddress;
 }
 public RegistrationPersistence(StorageFactory storageFactory, RegistrationKey registrationKey, int partitionSize, int packageCountThreshold, Uri contentBaseAddress)
 {
     _storage = new RecordingStorage(storageFactory.Create(registrationKey.ToString()));
     _registrationUri = _storage.ResolveUri("index.json");
     _packageCountThreshold = packageCountThreshold;
     _partitionSize = partitionSize;
     _registrationBaseAddress = storageFactory.BaseAddress;
     _contentBaseAddress = contentBaseAddress;
 }
 public RegistrationPersistence(
     StorageFactory storageFactory,
     RegistrationMakerCatalogItem.PostProcessGraph postProcessGraph,
     RegistrationKey registrationKey,
     int partitionSize,
     int packageCountThreshold,
     Uri contentBaseAddress,
     Uri galleryBaseAddress,
     bool forcePackagePathProviderForIcons)
 {
     _storage                          = new RecordingStorage(storageFactory.Create(registrationKey.ToString()));
     _postProcessGraph                 = postProcessGraph;
     _registrationUri                  = _storage.ResolveUri("index.json");
     _packageCountThreshold            = packageCountThreshold;
     _partitionSize                    = partitionSize;
     _registrationBaseAddress          = storageFactory.BaseAddress;
     _contentBaseAddress               = contentBaseAddress;
     _galleryBaseAddress               = galleryBaseAddress;
     _forcePackagePathProviderForIcons = forcePackagePathProviderForIcons;
 }
 public override string ToString()
 {
     return(RegistrationKey.ToString() + "/" + Version);
 }