C# Class Nancy.EmbeddedContent.EmbeddedResponse

The class responsible for returning responses from embedded content.
Inheritance: Response
Show file Open project: jugglingnutcase/Nancy.EmbeddedContent

Public Methods

Method Description
EmbeddedResponse ( Assembly assembly, string resourcePath, string name, System.DateTime lastModifiedDate, NancyContext context = null ) : Nancy.Helpers

Creates an EmbeddedResponse

EmbeddedResponse ( Assembly assembly, string resourcePath, string name, NancyContext context = null ) : Nancy.Helpers

Creates an EmbeddedResponse

Private Methods

Method Description
ByteArrayToString ( byte data ) : string
EmbeddedResponse ( ) : Nancy.Helpers
GenerateETag ( Stream stream ) : string
GetFileNameFromResourceName ( string resourcePath, string resourceName ) : string
GetResourceContent ( Assembly assembly, string resourcePath, string name ) : Stream

Method Details

EmbeddedResponse() public method

Creates an EmbeddedResponse
public EmbeddedResponse ( Assembly assembly, string resourcePath, string name, System.DateTime lastModifiedDate, NancyContext context = null ) : Nancy.Helpers
assembly System.Reflection.Assembly The assembly containing the embedded file with which to respond
resourcePath string The path to the embedded resource
name string The name of the resource
lastModifiedDate System.DateTime The date that will be compared against modified headers to determine if a NotModified response should be sent
context NancyContext The Nancy context
return Nancy.Helpers

EmbeddedResponse() public method

Creates an EmbeddedResponse
public EmbeddedResponse ( Assembly assembly, string resourcePath, string name, NancyContext context = null ) : Nancy.Helpers
assembly System.Reflection.Assembly The assembly containing the embedded file with which to respond
resourcePath string The path to the embedded resource
name string The name of the resource
context NancyContext The Nancy context
return Nancy.Helpers