private static void Compress(string filePath, string compressedFilePath)
        {
            var fileContent = File.ReadAllText(filePath);

            ICompressorFactory compressorFactory = new RazorCompressorFactory();
            BaseCompressor compressor = compressorFactory.CreateCompressor();
            fileContent = compressor.Compress(fileContent);

            WriteCompressedFile(fileContent, compressedFilePath);
        }
Ejemplo n.º 2
0
        private static void Compress(string filePath, string compressedFilePath)
        {
            var fileContent = File.ReadAllText(filePath);

            ICompressorFactory compressorFactory = new RazorCompressorFactory();
            BaseCompressor     compressor        = compressorFactory.CreateCompressor();

            fileContent = compressor.Compress(fileContent);

            WriteCompressedFile(fileContent, compressedFilePath);
        }