This series is a collection of knowledge about ASP .NET Core. It just is my notes.
Part 10: Make an HTTP Request.
Part 12: Authentication and Authorization.
- How to allow CORS
- AddCors in ConfigureServices method
- UseCors in Configure method
Basic programming, .NET technology.
This series is a collection of knowledge about ASP .NET Core. It just is my notes.
Part 10: Make an HTTP Request.
Part 12: Authentication and Authorization.
This series is a collection of knowledge about ASP .NET Core. It just is my notes.
Part 10: Make an HTTP Request.
Part 12: Authentication and Authorization.
This part shows how to use configuration and how to use Options patterns.
A sample of applying options pattern
This series is a collection of knowledge about ASP .NET Core. It just is my notes.
Part 10: Make an HTTP Request.
Part 12: Authentication and Authorization.
In this part, I got some knowledge about Host and Servers in ASP .Net core
4.1 Host
This series is a collection of knowledge about ASP .NET Core. It just is my notes.
Part 10: Make an HTTP Request.
Part 12: Authentication and Authorization.
This part is to summarise some knowledge concerning the Middleware in Asp .net core.
This series is a collection of knowledge about ASP .NET Core. It just is my notes.
Part 1: Startup file in ASP .Net core.
Part 10: Make an HTTP Request.
Part 12: Authentication and Authorization.
In this note, I want to summary some knowledge about DI in Asp.net core.
Access a registered service by specifying the key with the [FromKeyedServices]
This series is a collection of knowledge about ASP .NET Core. It just is my notes.
Part 10: Make an HTTP Request.
Part 12: Authentication and Authorization.
I take some notes for the startup file in Asp .net core:
var builder = WebApplication.CreateBuilder(args); // Add services to the container. builder.Services.AddRazorPages(); builder.Services.AddControllersWithViews(); // You can add your user-defined services here var app = builder.Build(); // Configure the HTTP request pipeline. // You can add your custom middle ware here if (!app.Environment.IsDevelopment()) { app.UseExceptionHandler("/Error"); app.UseHsts(); } app.UseHttpsRedirection(); app.UseStaticFiles(); ... app.Run();
References:
[Microsoft Learn] - App startup in ASP.NET Core