C# 클래스 Nancy.Embedded.Conventions.EmbeddedStaticContentConventionBuilder

파일 보기 프로젝트 열기: dealproc/Drey 1 사용 예제들

공개 메소드들

메소드 설명
AddDirectory ( string requestedPath, Assembly assembly, string contentPath = null ) : Func

Adds a directory-based convention for embedded static convention.

비공개 메소드들

메소드 설명
BuildContentDelegate ( NancyContext context, string requestedPath, string contentPath, Assembly assembly, string allowedExtensions ) : Func>.Func
EmbeddedStaticContentConventionBuilder ( ) : System
GetContentPath ( string requestedPath, string contentPath ) : string
GetEncodedPath ( string path ) : string
GetPathWithoutFilename ( string fileName, string path ) : string
GetSafeRequestPath ( string requestPath, string requestedPath, string contentPath ) : string
IsWithinContentFolder ( string contentRootPath, string fileName ) : bool

Returns whether the given filename is contained within the content folder

ResolveRootPathMarker ( ) : string

메소드 상세

AddDirectory() 공개 정적인 메소드

Adds a directory-based convention for embedded static convention.
public static AddDirectory ( string requestedPath, Assembly assembly, string contentPath = null ) : Func
requestedPath string The path that should be matched with the request.
assembly System.Reflection.Assembly
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 .
리턴 Func