Orchard route entry (1) and orchard route entry
For Orchard, I personally think that to really understand Orchard, you must understand how it works.
1. Orchard custom routing consists of three types
1. Distribution:
HubRoute: This function filters out the routes of the current access tenant by tenant.
2. containers:
ShellRoute: its function is to route by current tenant. If there are no other routes at this time, the routing data is processed by the MVC route.
3. Plug-ins:
The main function is AliasRoute. Its main function is to process the alias routing. Of course, this function is not only true. Alias routing (for example, changing locahost/thisolditem to locahost/I) works by saving it in the database and comparing the table AliasRecord. alias. add Routes to the route description. In the Orchard_Alias_AliasRecord table, check whether an alias route exists.
No matter how it is routed, it will be handed over to the standard MVC route management.
2. Orchard scans the IRouteProvider interface to obtain a list of RouteDescriptor groups, and converts all descriptions to tenant routes using the RoutePublisher Publish method.
1. routes are arranged in the first-level order of RouteDescriptor;
2. Add a reasonable domain;
3. Generate a ShellRoute-type route according to the description;
4. in step 2, if there is a plug-in route, the ShellRoute class route will wrap it (Figure 2 );
5. Wrap ShellRoute-type routes in HubRoute routes, that is, all other routes are packaged into HubRoute except for the original routes (MVC native routes;
6. It is possible that (the plug-in class may not be enabled) is as follows:
HubRoute (shellRoute (AliasRoute (MvcRouteHandler )));
Iii. Orchard access is not difficult to understand during the second and multi-tenant operation.
1. User Access;
2. Create a Host if it does not exist;
3. Create a tenant setting list;
4. Determine which tenant settings should be used through URL;
5. Based on the current tenant, use the HubRoute route to filter out the current tenant route and perform matching;
6. Find the appropriate controller to perform the operation;
4. The following are actual data during runtime:
1. Route Set (all routes are HubRoute wrapped)
2. shellRoute
Wireless routing + wireless routing (the first route to connect to the plug-in) + the method for setting the second route in the notebook
Enter the first route and set the IP address to 192.168.1.1.
Go to the second route and set the IP address to 192.168.2.1.
Does your home network come from a cat?
Find two network cables:
WAN port of Cat's LAN port (network cable) 192.168.1.1
192.168.1.1 LAN port (network cable) 192.168.2.1 WAN port.
Set 192.168.1.1 to PPPOE and enter the account password
Set 192.168.2.1 to a dynamic IP Address
Laptop wifi receives two identical wireless routing signals from the same vro (tenda), Tenda_085280 and Tenda_08528 2
The router is restored to the factory, and the new settings