Interview Questions .Net Core - amitbhilagude/userfullinks GitHub Wiki
Feature and Characteristics provided by ASP.Net Core
Cross-Platform Support
DI and Middleware built-in support
Replaced web. config with applicationsettings.json
Replaced Global.ascx with configureservices
Commandline support for replacing or build asp.net application
What is dependency Injection
Loosely coupled architecture
Option to register into IServiceCollection are Singleton, Scoped or Transit.
What startup class
Entry points which will have two methods
YOu can have any name and add this into the Program. cs as web builder.UseStartup<>
What is middleware
Application pipeline gets register every request
Use of IApplicationBuilder to register it
ConfigureService method
WWWRoot Folder
It will have static files but at the one level only. The nested folder will not be fetched.
It will only use relative path
Kerstel
Internal webserver to support cross-platform
Kerstel works without reverse proxy however it is recommended to use IIS, Nginx as a web proxy. IIS->Kerstel. it is relatively new and it doesn't have enough defense from attacks
IApplicationBuilder.Use or Run
This is used when you want to do the continuation or stop the next middleware pipeline executions
WebListener
Web server runs only on Windows Host machine
It is an alternative for Kerstel if you don't want use reverse proxy