. Net Core learning (1),. netcore Learning

Source: Internet
Author: User

. Net Core learning (1),. netcore Learning

  1. What is ASP. NET 1.0?
    1. Open source-GitHub
    2. Cross-platform support for Windows, Mac, and Linux
    3. Optimized from the underlying layer-modular components with minimum overhead-gives developers great flexibility
  1. Why ASP. NET Core?
    1. Lightweight, modular HTTP request pipeline-the past framework was too bloated, ASP. NET 5 is more small (modular), such as: no longer based on System. web. dll development, but is divided into a series of NuGet packages, you only need to install a few (pay-for-what-you-use );
    2. Big unification of frameworks-WebUI, Web APIs, and even client network frameworks are all unified
    3. Provides built-in dependency injection support based on cloud development and environment configuration.
      1. Cloud-based development-all packages are managed through NuGet
      2. Environment-use different configurations based on different platforms. You can also use IIS hosting, self-hosting, and OWIN hosting.
      3. Built-in dependency injection-internal integration of Autofac and Ninject
    4. Supports cross-platform development tools
      1. Visual Studio (non-cross-platform): provides a new and flexible project system.
      2. Other development tools (cross-platform support): provides a complete command line interface, so that you can choose your preferred tools for development.
    5. Supports cross-platform running
    6. Fully open-source, community support
    7. Supports Version Control for the side-by-side application. You only need to upgrade the required version.
  2. Application profiling
    1. ASP. NET Core 1.0 runs on. NET Execution Environment (DNX)
    2. Startup. cs

Public class Startup
{
Public void ConfigureServices (IServiceCollection services ){}

Public void Configure (IApplicationBuilder app ){}

Public static void Main (string [] args) => WebApplication. Run <Startup> (args );

}

  1. What is a service?

A service is a public component used in the entire application. It is obtained through dependency injection. There are three types of services in ASP. NET Core 1.0:

  1. What is middleware?

Middleware is used to form your application request pipeline. ASP. NET Core 1.0 adopts the asynchronous logic above HttpContext. It can choose to execute the next middleware in the sequence or directly terminate the request:

  1. What is server Servers?
    1. Used to listen for Request requests
      1. IIS
      2. Self-hosting: In your own process, you can use the WebListener service in Windows.
      3. Kestrel: cross-platform WebServer
  1. What is WebRoot?
    1. Root directory for processing Http requests (for example, processing static files)
  2. How to configure application-Configuration
    1. Previously: using System. Configuration and Web. config
    2. Now: the new configuration module processes simple key-Value Pair settings and supports multiple formats (XML, JSON, INI)
    1. Integration of other client frameworks-AngularJS, KnockoutJS, Bootstrap...

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.