Orchard core document Translation (iii) Orchard core Modules

Source: Internet
Author: User

Original link: https://www.cnblogs.com/Qbit/p/andorid-netcore.html

Reprint please indicate the source

Introduced

The Orchard Core Modules Library provides a mechanism to have a standalone modular system that allows you to opt-in to a specific application framework without having to rely on your application design.  

original [[The Library Orchard Core Modules provides a mechanism to having a self-contained modular system where you c The specific application framework and not has the design of your application is dictated to by such.
]]...

Quick Start

In Visual Studio, create a new Web application. Install OrchardCore.Application.Cms.Targets into your project by managing the project NuGet package. Next, in Startup.cs, modify the Configureservices method, adding the following line:

Services . Addorchardcms ();

Next, at the end of the Configure method, use this line: app. Useorchardcore (); Replace this block: app. Run (Async (context) =>{await context. Response.writeasync ("Hello world! ”);} );

Other frameworks you can easily add your favorite application framework to your pipeline. The following implementations are designed to work in parallel, so if you want to use ASP. NET MVC and Nancy in the pipeline, just add both.

The following modular framework wrapper is designed to work directly with the modular application framework, so avoid adding the original frame and expect it to work.

original [[the Modular framework wrappers below is designed to work directly with the modular application framework , so avoid just adding the raw framework and expect it to just work.] ... ASP. NET MVC

Installing OrchardCore.Application.Mvc.Targets into a project with the NuGet Package Manager

Next, in Startup.cs, modify the method configureservices to resemble the following:
ADD ASP. NET MVC and support for modules             services. Addorchardcore ()         . Addmvc ();

  

Note

Note Add.AddMvc()

ASP. NET MVC is now part of your pipeline.

Here you can find the sample application: OrchardCore.Mvc.Web

Nancyfx

Installing OrchardCore.Application.Nancy.Targets into a project by managing the project NuGet package

Next, in Startup.cs, modify the method configureservices to resemble the following:

// ADD Nancy and support for modules             Services                . Addorchardcore ()                . Addnancy ()                ;

Note

Note Add.AddNancy()

Nancyfx is now part of your pipeline. This means that the Nancy module will be automatically discovered.

Here you can find a sample application: OrchardCore.Nancy.Web

Original link: https://www.cnblogs.com/Qbit/p/andorid-netcore.html

Reprint please indicate the source

Orchard core document Translation (iii) Orchard core Modules

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.