Category: .NET

Building a gRPC Client in .NET
Building a gRPC Client in .NET
Blog Posts

Introduction In this article, we will take a look at how to create a simple gRPC client with .NET and communicate with a server. This is the final post of the blog series where we talk about building gRPC services. Motivation This is the fifth part of an articles series on gRPC. If you didn鈥檛… READ MORE

Customising ASP.NET
Customising ASP.NET
Ebooks

This chapter looks at how to customise ASP.NET Core Identity. You will learn how to customize the basic implementation of the ASP.NET Core Identity UI and how to add custom information to IdentityUser. The chapter will cover the following points: Introducuing ASP.NEt Core Identity Customizing IdentityUser Customising the Identity Views Purchase the full book here.… READ MORE

What Is Razor - ASP.NET
What Is Razor – ASP.NET
Blog Posts

Razor is a markup syntax that flows seamlessly between Hypertext Markup Language (HTML) and C# and Visual Basic syntax, with C# being the most commonly used. When looking at an ASP.NET solution, Razor files will have extensions of .cshtml, .vbhtml, or .razor. The compiled artifact of Razor is executable code that writes HTML to the HTTP response. The… READ MORE

`dotnet watch` with Microsoft.Identity.Web or custom IDistributedCache
`dotnet watch` with Microsoft.Identity.Web or custom IDistributedCache
Blog Posts

Microsoft.Identity.Web is new (GA from Sept 30, 2020) library which contains a set of reusable classes used in conjunction with ASP.NET Core for integrating with the Microsoft identity platform (formerly Azure AD v2.0 endpoint) and AAD B2C. AzureAD/microsoft-identity-web Microsoft.Identity.Web project template is included in .NET 5.0 with tutorials like 鈥淐reate a Blazor Server app that uses the Microsoft identity platform… READ MORE

Why model binding to JObject from a request doesn鈥檛 work anymore in ASP.NET Core 3.1 and what鈥檚 the alternative ?
Why model binding to JObject from a request doesn鈥檛 work anymore in ASP.NET Core 3.1 and what鈥檚 the alternative ?
Blog Posts

Introduction Json.Net (NewtonSoft)聽has been for a long time the most used JSON serializer in .NET world. Since聽.NET Core 3聽and聽ASP.NET Core 3聽Microsoft introduced a new one named聽System.Text.Json.聽JObject聽is a class that belongs to聽Json.Net (NewtonSoft)聽and if this latest is replaced by聽System.Text.Json, in this case you should expect that using JObject will no longer work. Unfortunately I have had… READ MORE

Exploring the code behind IHttpClientFactory in depth
Exploring the code behind IHttpClientFactory in depth
Blog Posts

Exploring the code behind IHttpClientFactory in depth. In this post I take a look at the code in the default implementation of聽IHttpClientFactory聽in ASP.NET Core鈥擠efaultHttpClientFactory. We’ll see how it ensures that聽HttpClient聽instances created with the factory聽prevent socket exhaustion, while also ensuring that聽DNS changes are respected. This post assumes you already have a general idea of IHttpClientFactory and what it’s… READ MORE