Class ServicesRoutingManager
Inheritance
Implements
Namespace: DotNetNuke.Web.Api.Internal
Assembly: DotNetNuke.Web.dll
Syntax
public sealed class ServicesRoutingManager : object, IMapRoute
Constructors
| Improve this Doc View SourceServicesRoutingManager()
Initializes a new instance of the ServicesRoutingManager class.
Declaration
public ServicesRoutingManager()
Methods
| Improve this Doc View SourceMapHttpRoute(String, String, String, Object, Object, String[])
Sets up the route(s) for DotNetNuke services.
Declaration
public IList<Route> MapHttpRoute(string moduleFolderName, string routeName, string url, object defaults, object constraints, string[] namespaces)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | moduleFolderName | The name of the folder under DesktopModules in which your module resides. |
| System.String | routeName | A unique name for the route. |
| System.String | url | The parameterized portion of the route. |
| System.Object | defaults | Default values for the route parameters. |
| System.Object | constraints | The constraints. |
| System.String[] | namespaces | The namespace(s) in which to search for the controllers for this route. |
Returns
| Type | Description |
|---|---|
| IList<Route> | A list of all routes that were registered. |
Remarks
The combination of moduleFolderName and routeName must be unique for each route.
MapHttpRoute(String, String, String, Object, String[])
Sets up the route(s) for DotNetNuke services.
Declaration
public IList<Route> MapHttpRoute(string moduleFolderName, string routeName, string url, object defaults, string[] namespaces)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | moduleFolderName | The name of the folder under DesktopModules in which your module resides. |
| System.String | routeName | A unique name for the route. |
| System.String | url | The parameterized portion of the route. |
| System.Object | defaults | Default values for the route parameters. |
| System.String[] | namespaces | The namespace(s) in which to search for the controllers for this route. |
Returns
| Type | Description |
|---|---|
| IList<Route> | A list of all routes that were registered. |
Remarks
The combination of moduleFolderName and routeName must be unique for each route.
MapHttpRoute(String, String, String, String[])
Sets up the route(s) for DotNetNuke services.
Declaration
public IList<Route> MapHttpRoute(string moduleFolderName, string routeName, string url, string[] namespaces)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | moduleFolderName | The name of the folder under DesktopModules in which your module resides. |
| System.String | routeName | A unique name for the route. |
| System.String | url | The parameterized portion of the route. |
| System.String[] | namespaces | The namespace(s) in which to search for the controllers for this route. |
Returns
| Type | Description |
|---|---|
| IList<Route> | A list of all routes that were registered. |
Remarks
The combination of moduleFolderName and routeName must be unique for each route.
RegisterRoutes()
Declaration
public void RegisterRoutes()