HI WELCOME TO KANSIRIS

Global Error Handling in ASP.NET Core Web API

Leave a Comment
 The exception handling features help us deal with the unforeseen errors which could appear in our code.  To handle exceptions we can use the try-catch block in our code as well as finally keyword to clean up resources afterward.Even though there is nothing wrong with the try-catch blocks in our Actions in Web API project, we can extract all the exception handling logic into a single centralized.

Using API Key Authentication To Secure ASP.NET Core Web API

Leave a Comment
 IntroductionAPI key authentication will keep a secure line between the API and clients, however, if you wish to have user authentication, go with token-based authentication, aka OAuth2.0. In this article, you will learn how to implement the API Key Authentication to secure the ASP.NET Core Web API by creating a middleware. API Key AuthenticationStep 1Open Visual Studio Create or open a ASP.NET Core Web API Project, in my.