Table of Contents

Class ContentTypeProvider

Namespace
CSF.Screenplay.Reporting
Assembly
CSF.Screenplay.dll

Implementation of IGetsContentType which makes use of the MimeTypes NuGet package.

public class ContentTypeProvider : IGetsContentType
Inheritance
ContentTypeProvider
Implements
Inherited Members

Methods

GetContentType(string)

Gets the content type (aka MIME type) for a specified filename.

public string GetContentType(string fileName)

Parameters

fileName string

The filename

Returns

string

The content type