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()));
        }
예제 #3
0
 public override string ToString()
 {
     return(string.Concat(_key.ToString(), Value));
 }
예제 #4
0
 public override string ToString()
 {
     return(RegistrationKey.ToString() + "/" + Version);
 }
예제 #5
0
        public void ToString_Always_ReturnsLowerCase(string id)
        {
            var key = new RegistrationKey(id);

            Assert.Equal(id.ToLowerInvariant(), key.ToString());
        }