C# 클래스 Nancy.EmbeddedContent.EmbeddedViewLocationProvider

Contains the functionality for locating a view that has been embedded into an assembly resource.
상속: IViewLocationProvider
파일 보기 프로젝트 열기: jugglingnutcase/Nancy.EmbeddedContent 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Ignore IList
RootNamespaces string>.IDictionary

공개 메소드들

메소드 설명
EmbeddedViewLocationProvider ( IResourceReader resourceReader, IResourceAssemblyProvider resourceAssemblyProvider ) : Nancy.ViewEngines

Initializes a new instance of the EmbeddedViewLocationProvider class.

GetLocatedViews ( IEnumerable supportedViewExtensions ) : IEnumerable

Returns an ViewLocationResult instance for all the views that could be located by the provider.

If no views could be located, this method should return an empty enumerable, never .

GetLocatedViews ( IEnumerable supportedViewExtensions, string location, string viewName ) : IEnumerable

Returns an ViewLocationResult instance for all the views matching the viewName that could be located by the provider.

If no views could be located, this method should return an empty enumerable, never .

비공개 메소드들

메소드 설명
CreateSegment ( IEnumerable current, IEnumerable previous ) : IEnumerable
GetExtension ( string resourceName ) : string
GetFileName ( string resourceName ) : string
GetLocation ( ResourceViewInfo resource, string rootNamespace ) : string
GetRootNamespace ( IEnumerable resourceStreams ) : string
GetViewLocations ( Assembly assembly, IEnumerable supportedViewExtensions ) : IEnumerable
IsMatch ( string location, string viewName, Nancy.ViewEngines.ViewLocationResult result ) : bool

메소드 상세

EmbeddedViewLocationProvider() 공개 메소드

Initializes a new instance of the EmbeddedViewLocationProvider class.
public EmbeddedViewLocationProvider ( IResourceReader resourceReader, IResourceAssemblyProvider resourceAssemblyProvider ) : Nancy.ViewEngines
resourceReader IResourceReader An instance that should be used when extracting embedded views.
resourceAssemblyProvider IResourceAssemblyProvider An instance that should be used to determine which assemblies to scan for embedded views.
리턴 Nancy.ViewEngines

GetLocatedViews() 공개 메소드

Returns an ViewLocationResult instance for all the views that could be located by the provider.
If no views could be located, this method should return an empty enumerable, never .
public GetLocatedViews ( IEnumerable supportedViewExtensions ) : IEnumerable
supportedViewExtensions IEnumerable An instance, containing the view engine file extensions that is supported by the running instance of Nancy.
리턴 IEnumerable

GetLocatedViews() 공개 메소드

Returns an ViewLocationResult instance for all the views matching the viewName that could be located by the provider.
If no views could be located, this method should return an empty enumerable, never .
public GetLocatedViews ( IEnumerable supportedViewExtensions, string location, string viewName ) : IEnumerable
supportedViewExtensions IEnumerable An instance, containing the view engine file extensions that is supported by the running instance of Nancy.
location string The location of the view to try and find
viewName string The name of the view to try and find
리턴 IEnumerable

프로퍼티 상세

Ignore 공개적으로 정적으로 프로퍼티

A list of assemblies to ignore when scanning for embedded views.
public static IList Ignore
리턴 IList

RootNamespaces 공개적으로 정적으로 프로퍼티

User-configured root namespaces for assemblies.
public static IDictionary RootNamespaces
리턴 string>.IDictionary