Method | Description | |
---|---|---|
BuildUrl ( System.UrlInfo current, IDictionary parameters ) : string |
Builds the URL using the current url as contextual information and a parameter dictionary. Common parameters includes Please note that if you dont specify an area or controller name, they will be inferred from the context. If you want to use an empty area, you must specify UrlInfo current = ... // Assume that the current is area Admin, controller Products and action List BuildUrl(current, {action: 'view'}) // returns /Admin/Products/view.castle BuildUrl(current, {controller: 'Home', action: 'index'}) // returns /Admin/Home/index.castle BuildUrl(current, {area:'', controller: 'Home', action: 'index'}) // returns /Home/index.castle The The The |
|
BuildUrl ( System.UrlInfo current, string controller, string action ) : string |
Builds an URL using the controller name and action name.
|
|
BuildUrl ( System.UrlInfo current, string controller, string action, IDictionary queryStringParams ) : string |
Builds an URL using the controller name, action name, and a querystring dictionary.
|
|
BuildUrl ( System.UrlInfo current, string controller, string action, |
Builds an URL using the controller name, action name, and a querystring name value collection.
|
|
BuildUrl ( System.UrlInfo current, string area, string controller, string action ) : string |
Builds an URL using the area name, controller name and action name.
|
|
BuildUrl ( System.UrlInfo current, string area, string controller, string action, IDictionary queryStringParams ) : string |
Builds an URL using the area name, controller name, action name, and a querystring dictionary.
|
|
BuildUrl ( System.UrlInfo current, string area, string controller, string action, |
Builds an URL using the area name, controller name, action name, and a querystring name value collection.
|
|
DefaultUrlBuilder ( ) : System |
Initializes a new instance of the DefaultUrlBuilder class.
|
|
Service ( IServiceProvider provider ) : void |
Services the specified provider.
|
Method | Description | |
---|---|---|
InternalBuildUrl ( string area, string controller, string action, string protocol, string port, string domain, string subdomain, string appVirtualDir, string extension, bool absolutePath, bool applySubdomain, string suffix ) : string |
Internals the build URL.
|
|
InternalBuildUrl ( string area, string controller, string action, string protocol, string port, string domain, string subdomain, string appVirtualDir, string extension, bool absolutePath, bool applySubdomain, string suffix, string basePath ) : string |
Internals the build URL.
|
Method | Description | |
---|---|---|
InternalBuildUrlUsingBasePath ( string action, string area, string basePath, string controller ) : string |
Internals the build URL using base path.
|
|
InternalBuildUsingAppVirtualDir ( bool absolutePath, string action, bool applySubdomain, string appVirtualDir, string area, string controller, string domain, string port, string protocol, string subdomain ) : string |
Internals the build using app virtual dir.
|
public BuildUrl ( System.UrlInfo current, IDictionary parameters ) : string | ||
current | System.UrlInfo | The current Url information. |
parameters | IDictionary | The parameters. |
return | string |
public BuildUrl ( System.UrlInfo current, string controller, string action ) : string | ||
current | System.UrlInfo | The current Url information. |
controller | string | The controller. |
action | string | The action. |
return | string |
public BuildUrl ( System.UrlInfo current, string controller, string action, IDictionary queryStringParams ) : string | ||
current | System.UrlInfo | The current Url information. |
controller | string | The controller. |
action | string | The action. |
queryStringParams | IDictionary | The query string params. |
return | string |
public BuildUrl ( System.UrlInfo current, string controller, string action, |
||
current | System.UrlInfo | The current Url information. |
controller | string | The controller. |
action | string | The action. |
queryStringParams | The query string params. | |
return | string |
public BuildUrl ( System.UrlInfo current, string area, string controller, string action ) : string | ||
current | System.UrlInfo | The current Url information. |
area | string | The area. |
controller | string | The controller. |
action | string | The action. |
return | string |
public BuildUrl ( System.UrlInfo current, string area, string controller, string action, IDictionary queryStringParams ) : string | ||
current | System.UrlInfo | The current Url information. |
area | string | The area. |
controller | string | The controller. |
action | string | The action. |
queryStringParams | IDictionary | The query string params. |
return | string |
public BuildUrl ( System.UrlInfo current, string area, string controller, string action, |
||
current | System.UrlInfo | The current Url information. |
area | string | The area. |
controller | string | The controller. |
action | string | The action. |
queryStringParams | The query string params. | |
return | string |
protected InternalBuildUrl ( string area, string controller, string action, string protocol, string port, string domain, string subdomain, string appVirtualDir, string extension, bool absolutePath, bool applySubdomain, string suffix ) : string | ||
area | string | The area. |
controller | string | The controller. |
action | string | The action. |
protocol | string | The protocol. |
port | string | The port. |
domain | string | The domain. |
subdomain | string | The subdomain. |
appVirtualDir | string | The app virtual dir. |
extension | string | The extension. |
absolutePath | bool | if set to |
applySubdomain | bool | if set to |
suffix | string | The suffix. |
return | string |
protected InternalBuildUrl ( string area, string controller, string action, string protocol, string port, string domain, string subdomain, string appVirtualDir, string extension, bool absolutePath, bool applySubdomain, string suffix, string basePath ) : string | ||
area | string | The area. |
controller | string | The controller. |
action | string | The action. |
protocol | string | The protocol. |
port | string | The port. |
domain | string | The domain. |
subdomain | string | The subdomain. |
appVirtualDir | string | The app virtual dir. |
extension | string | The extension. |
absolutePath | bool | if set to |
applySubdomain | bool | if set to |
suffix | string | The suffix. |
basePath | string | The base path. |
return | string |
public Service ( IServiceProvider provider ) : void | ||
provider | IServiceProvider | The provider. |
return | void |