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;
}