C# Class Aqueduct.Appia.Core.FileSystemViewSourceProvider

Inheritance: IViewSourceProvider
ファイルを表示 Open project: aqueduct/Appia

Public Methods

Method Description
FileSystemViewSourceProvider ( IRootPathProvider rootPathProvider, IConfiguration settings ) : System
LocateView ( string viewName, IEnumerable supportedViewEngineExtensions ) : Nancy.ViewEngines.ViewLocationResult

Attemptes to locate the view, specified by the viewName parameter, in the underlaying source.

Private Methods

Method Description
GetViewFolder ( string prefix, string viewName ) : string
GetViewName ( string viewName ) : string
GetViewPrefix ( string viewName ) : string
RemoveViewPrefix ( string viewName ) : string

Method Details

FileSystemViewSourceProvider() public method

public FileSystemViewSourceProvider ( IRootPathProvider rootPathProvider, IConfiguration settings ) : System
rootPathProvider IRootPathProvider
settings IConfiguration
return System

LocateView() public method

Attemptes to locate the view, specified by the viewName parameter, in the underlaying source.
public LocateView ( string viewName, IEnumerable supportedViewEngineExtensions ) : Nancy.ViewEngines.ViewLocationResult
viewName string The name of the view that should be located.
supportedViewEngineExtensions IEnumerable The supported view engine extensions that the view is allowed to use.
return Nancy.ViewEngines.ViewLocationResult