Class FileHandler
HTTP handler that returns the content of the stored file through a HTTP GET request. The requests must be formated like: {handler name and extension}?fileKey={file key}.
Implements
Inherited Members
Namespace: Nevatech.Vsb.Repository.Services
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class FileHandler : IHttpHandler
  Constructors
FileHandler()
Declaration
public FileHandler()
  Properties
IsReusable
Gets True indicating that this instance can be reused (singleton).
Declaration
public bool IsReusable { get; }
  Property Value
| Type | Description | 
|---|---|
| Boolean | 
Methods
GetContentType(String)
Returns MIME content type corresponding to the file extension.
Declaration
public static string GetContentType(string fileName)
  Parameters
| Type | Name | Description | 
|---|---|---|
| String | fileName | File name which content type needs to be returned.  | 
      
Returns
| Type | Description | 
|---|---|
| String | MIME content type corresponding to the file extension.  | 
      
ProcessRequest(HttpContext)
Process HTTP request and responses recorded message content corresponding to provided identifier.
Declaration
public void ProcessRequest(HttpContext context)
  Parameters
| Type | Name | Description | 
|---|---|---|
| HttpContext | context | An object encapsulating all HTTP-specific information about the request.  | 
      
ProcessRequest(HttpContextBase)
Process HTTP request and responses recorded message content corresponding to provided identifier.
Declaration
public static void ProcessRequest(HttpContextBase context)
  Parameters
| Type | Name | Description | 
|---|---|---|
| HttpContextBase | context | An object encapsulating all HTTP-specific information about the request.  |