C# Class NSemble.Core.Nancy.NSembleViewLocationProvider

Inheritance: IViewLocationProvider
Show file Open project: synhershko/NSemble

Public Methods

Method Description
GetLocatedViews ( IEnumerable supportedViewExtensions ) : IEnumerable
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 .

NSembleViewLocationProvider ( IRootPathProvider rootPathProvider, IFileSystemReader fileSystemReader, global container ) : System
NSembleViewLocationProvider ( IRootPathProvider rootPathProvider, global container ) : System

Method Details

GetLocatedViews() public method

public GetLocatedViews ( IEnumerable supportedViewExtensions ) : IEnumerable
supportedViewExtensions IEnumerable
return IEnumerable

GetLocatedViews() public method

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
viewName string The name of the view to try and find
return IEnumerable

NSembleViewLocationProvider() public method

public NSembleViewLocationProvider ( IRootPathProvider rootPathProvider, IFileSystemReader fileSystemReader, global container ) : System
rootPathProvider IRootPathProvider
fileSystemReader IFileSystemReader
container global
return System

NSembleViewLocationProvider() public method

public NSembleViewLocationProvider ( IRootPathProvider rootPathProvider, global container ) : System
rootPathProvider IRootPathProvider
container global
return System