private async Task <MemoryStorage> ProcessAsync( IReadOnlyDictionary <string, IGraph> newItems, string packageId, int partitionSize, int packageCountThreshold = _defaultPackageCountThreshold, bool filterOutDeprecation = false) { var registrationKey = new RegistrationKey(packageId?.ToLowerInvariant() ?? string.Empty); await RegistrationMaker.ProcessAsync( registrationKey, newItems, (g, u, k) => true, _storageFactory, filterOutDeprecation?RegistrationCollector.FilterOutDeprecationInformation : g => g, _contentBaseAddress, _galleryBaseAddress, partitionSize, packageCountThreshold, forcePackagePathProviderForIcons : false, telemetryService : _telemetryService.Object, cancellationToken : CancellationToken.None); return((MemoryStorage)_storageFactory.Create(registrationKey.ToString())); }
private async Task <MemoryStorage> ProcessAsync( IReadOnlyDictionary <string, IGraph> newItems, string packageId, int partitionSize, int packageCountThreshold = _defaultPackageCountThreshold) { var registrationKey = new RegistrationKey(packageId?.ToLowerInvariant() ?? string.Empty); await RegistrationMaker.ProcessAsync( registrationKey, newItems, _storageFactory, _contentBaseAddress, partitionSize, packageCountThreshold, _telemetryService.Object, CancellationToken.None); return((MemoryStorage)_storageFactory.Create(registrationKey.ToString())); }
public override string ToString() { return(string.Concat(_key.ToString(), Value)); }
public override string ToString() { return(RegistrationKey.ToString() + "/" + Version); }
public void ToString_Always_ReturnsLowerCase(string id) { var key = new RegistrationKey(id); Assert.Equal(id.ToLowerInvariant(), key.ToString()); }