示例#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;
 }