コード例 #1
0
        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()));
        }
コード例 #2
0
        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());
        }