• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class ServicesRoutingManager

Inheritance
System.Object
ServicesRoutingManager
Implements
IMapRoute
Namespace: DotNetNuke.Web.Api.Internal
Assembly: DotNetNuke.Web.dll
Syntax
public sealed class ServicesRoutingManager : object, IMapRoute

Constructors

| Improve this Doc View Source

ServicesRoutingManager()

Initializes a new instance of the ServicesRoutingManager class.

Declaration
public ServicesRoutingManager()

Methods

| Improve this Doc View Source

MapHttpRoute(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

RegisterRoutes()

Declaration
public void RegisterRoutes()

Implements

IMapRoute

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS