Example #1
0
        public ExtensionContentTypeProvider()
        {
            // this.Log = LogManager.GetLogger(typeof(ExtensionContentTypeProvider));
            this.m_defaultContentTypeProvider = new Microsoft.AspNetCore.StaticFiles.FileExtensionContentTypeProvider();

            this.m_mappings = new System.Collections.Generic.Dictionary <string, string>(
                System.StringComparer.OrdinalIgnoreCase)
            {
                { "json", "application/json" },
                { "jbc", "application/json" },
                { "ta", "application/json" },
                { "mustache", "text/plain" }
            };
        }
 internal static bool LookupContentType(Microsoft.AspNetCore.StaticFiles.IContentTypeProvider contentTypeProvider, Microsoft.AspNetCore.Builder.StaticFileOptions options, Microsoft.AspNetCore.Http.PathString subPath, out string contentType)
 {
     throw null;
 }