Exemplo n.º 1
0
        public static ICollection <ContentType> GetContentType(this IContentTypeDetector contentTypeDetector, Uri url, HttpContentHeaders headers, string fileName)
        {
            string mimeType = (string)null;
            MediaTypeHeaderValue contentType = headers.ContentType;

            if (null != contentType)
            {
                mimeType = contentType.MediaType;
            }
            return(contentTypeDetector.GetContentType(url, mimeType, fileName));
        }