C# Class Nancy.EmbeddedContent.Conventions.StaticContentsConventionsExtensions

Extension methods to aid adding embedded static content into conventions
Show file Open project: jugglingnutcase/Nancy.EmbeddedContent

Public Methods

Method Description
AddEmbeddedDirectory ( this conventions, string requestedPath, Assembly assembly, string contentPath = null ) : void

Adds a directory-based convention for embedded static resources

Method Details

AddEmbeddedDirectory() public static method

Adds a directory-based convention for embedded static resources
public static AddEmbeddedDirectory ( this conventions, string requestedPath, Assembly assembly, string contentPath = null ) : void
conventions this Conventions in which static content will be added
requestedPath string The path that should be matched with the request
assembly System.Reflection.Assembly The assembly that contains the embedded static content
contentPath string The path to where the content is stored in your application, relative to the root. If this is then it will be the same as .
return void