예제 #1
0
        public static MimeMapper FromApacheFile(string path, PathResolver pathResolver)
        {
            Dictionary <string, string> extToMime = ParseApacheFile(path);

            return(new MimeMapper(extToMime, pathResolver));
        }
예제 #2
0
 public MimeMapper(Dictionary <string, string> extToMimeMap, PathResolver pathResolver)
 {
     extensionToMimeMap = extToMimeMap;
     this.pathResolver  = pathResolver;
 }