Ng.CommandHelpers.CreateCompressedStorageFactory C# (CSharp) Method

CreateCompressedStorageFactory() public static method

public static CreateCompressedStorageFactory ( string>.IDictionary arguments, bool verbose ) : NuGet.Services.Metadata.Catalog.Persistence.StorageFactory
arguments string>.IDictionary
verbose bool
return NuGet.Services.Metadata.Catalog.Persistence.StorageFactory
        public static StorageFactory CreateCompressedStorageFactory(IDictionary<string, string> arguments, bool verbose)
        {
            if (!arguments.GetOrDefault(Arguments.UseCompressedStorage, false))
            {
                return null;
            }

            IDictionary<string, string> names = new Dictionary<string, string>
            {
                { Arguments.StorageBaseAddress, Arguments.CompressedStorageBaseAddress },
                { Arguments.StorageAccountName, Arguments.CompressedStorageAccountName },
                { Arguments.StorageKeyValue, Arguments.CompressedStorageKeyValue },
                { Arguments.StorageContainer, Arguments.CompressedStorageContainer },
                { Arguments.StoragePath, Arguments.CompressedStoragePath }
            };

            return CreateStorageFactoryImpl(arguments, names, verbose);
        }