Basic programming, .NET technology.

4. ASP .Net core - Fundamentals - Host and Server

 This series is a collection of knowledge about ASP .NET Core. It just is my notes.

Part 1: Startup file.

Part 2: Dependency injection.

Part 3: Middleware.

Part 5: Configurations.

Part 6: Environment.

Part 7: Logs.

Part 8: Error Handling.

Part 9: Routing.

Part 10: Make an HTTP Request.

Part 11: Static files.

Part 12: Authentication and Authorization.

Part 13: CORS.

In this part, I  got some knowledge about Host and Servers in ASP .Net core

4.1 Host

  • Generic host
  • Web host

- Host is an object that encapsulates:
  • DI
  • Logging
  • Configuration
  • IHostedService implementations
- How to set up a host: Program, Main, CreateHostBuilder
- Default builder setting:
  • CreateDefaultBuilder: content root, host configs, app configs, add logging providers
  • ConfigureWebHostDefault: host configs, set kestrel server....
- Host configuration: how to do? =>  ConfigureHostConfiguration
- App configuration: how to do? => ConfigurAppConfiguration

4.2 Server
  • Kestrel
  • Http.sys
  • Hosting model:
    • in-process hosting
    • out-of-process hosting

References:
Share:

0 nhận xét:

Đăng nhận xét

Featured Posts

Data type 3 - string type