C# Class Tavis.TreeRouteExtensions

显示文件 Open project: darrelmiller/ApiRouter

Public Methods

Method Description
AddWithPath ( this router, string path, Action configure ) : TreeRoute
Configure ( this router, Action configureAction ) : TreeRoute
GetAtPath ( this router, string path ) : TreeRoute
GetUrl ( this router ) : Uri
GetUrlForController ( this router, Type type, string instance = null ) : Uri
ToAction ( this router, string actionName ) : TreeRoute

Method Details

AddWithPath() public static method

public static AddWithPath ( this router, string path, Action configure ) : TreeRoute
router this
path string
configure Action
return TreeRoute

Configure() public static method

public static Configure ( this router, Action configureAction ) : TreeRoute
router this
configureAction Action
return TreeRoute

GetAtPath() public static method

public static GetAtPath ( this router, string path ) : TreeRoute
router this
path string
return TreeRoute

GetUrl() public static method

public static GetUrl ( this router ) : Uri
router this
return System.Uri

GetUrlForController() public static method

public static GetUrlForController ( this router, Type type, string instance = null ) : Uri
router this
type System.Type
instance string
return System.Uri

ToAction() public static method

public static ToAction ( this router, string actionName ) : TreeRoute
router this
actionName string
return TreeRoute