Interview Questions .Net Core - amitbhilagude/userfullinks GitHub Wiki

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