Bundler.Utilities.YUITransform.Process C# (CSharp) 메소드

Process() 공개 메소드

public Process ( BundleContext context, BundleResponse bundle ) : void
context BundleContext
bundle BundleResponse
리턴 void
        public void Process(BundleContext context, BundleResponse bundle)
        {
            bundle.ContentType = this._contentType;

               string content = string.Empty;

               foreach (FileInfo file in bundle.Files)
               {

            using (StreamReader fileReader = new StreamReader(file.FullName)) {
             content +=   fileReader.ReadToEnd();
             fileReader.Close();
            }

               }

               bundle.Content = Compress(content);
        }