TechBubbles Microsoft Technology BLOG

Category.NET Core

Clean Architecutre pattern for Microservice

This post outlines using Clean Architecture with ASP.NET Core 6 Micro Service. One of the main reason to use Clean Architecture template is that you can focus on writing business logic but not to get struck on thinking about infrastructure concerns. It is formerly known by other names like Onion Architecture , Hexagonal Architecture and Ports and Adapters architecture. What is Clean Architecture...

Async / Await guide-lines

There are lot of different ways to use Async\await in C#. It is bit difficult to understand what different methods, fields and keywords are under tasks and how they are different? This post outlines some bad examples that developer shouldn’t use and explains the alternate solution. Bad example1: This locks up the UI. Never use .Result Above line is wrapper method on taskservice which...

Building a Secure ASP.NET Core Web API

This post outlines the steps that require to secure ASP.NET Core 3.0(preview) Web API using AZURE AD. Web API uses Azure AD as identity provider which implements the OAuth2 standards. In this case AZURE AD grants the tokens to applications. Don’t get confused with OpenIDConnect and OAuth2. OpenIDConnect protocol implements OAuth2 standards. OpenID is not just for APIs, it can be used for...

Using Swagger in ASP.NET Core 2.2

ASP.NET Core 2.2 introduces some new cool features to support Swagger in web API project. This post outlines the new core 2.2 features API Conventions and API Analyzers . Download ASP.NET Core 2.2 to test this feature. The code described in this post can be downloaded from here What is swagger? Swagger also known as Open API is a specification for describing REST APIs. It helps your web api...

ASP.NET Core 1 details

ASP.NET core is different from ASP.NET in the past.ASP.NET core is just bunch of libraries; it doesn’t have any host process that comes with it. ASP.NET core is completely decoupled from System.web dll. This post outlines the following ASP.NET Core 1 features in detail · ASP.NET Core hosting · Request handling · Routing · MVC Application Parts You provide the host process for example when...

TechBubbles Microsoft Technology BLOG

Follow me

Archives

Tag Cloud