Top 11 C# Tips to Improve Code Quality and Performance
In this article, we are going to learn some useful C# tips on how to improve our code quality and performance. Let’s get started! Why These C# Tips? Before we begin, let us briefly discuss why we chose these specific C# tips over many others that certainly exist....
10 Things You Should Avoid in Your ASP.NET Core Controllers
Keeping controllers clean and tidy is something we've learned we should do the first time we've stumbled upon the MVC pattern. But as the project grows and other team members enter the project, things might get out of hand. Especially when deadlines need to be met,...
Using Azure Active Directory to Secure Blazor WebAssembly Hosted Apps
In this article, we are going to learn how to use Azure Active Directory to secure our Blazor WebAssembly hosted application. In the previous article, we've learned how to do the same thing with a Blazor WebAssembly standalone app, but this time, we have a server-side...
Using Azure Active Directory to Secure a Blazor WebAssembly Standalone App
In this article, we are going to learn how to use Azure Active Directory (Azure AD) to secure our Blazor WebAssembly standalone application. First, we are going to show you how to use the Azure portal to register the Blazor Webassembly standalone application. Then, we...
Using Dapper with ASP.NET Core Web API
In this article, we'll learn how to use Dapper in the ASP.NET Core Web API project. We'll talk about Dapper overall, how to use different queries and executions, how to execute stored procedures, and how to create multiple queries inside a transaction. We'll also...
Hangfire with ASP.NET Core
Almost all applications need to do some sort of background work. Whether it’s a long and tedious task or a repetitive job that we need to do every other day, in this article we are going to learn how we can easily implement it. For this, we are going to be using...
Asynchronous Programming with Async and Await in ASP.NET Core
In this article, we are going to learn about asynchronous programming with the async and await keywords in the ASP.NET Core projects. We are going to dive deep inside these keywords and explain their advantages and how they help us scale our application. Additionally,...
Structured Logging in ASP.NET Core With Serilog
Creating Business Workflows with Azure Logic Apps
In this article, we’re going to learn how to use the Azure Logic Apps cloud service in detail. We’ll start by looking at what an Azure Logic App is. Then, we’ll discuss some of its advantages. After that, we’ll learn how to create an Azure Logic App from the portal...
Azure Cosmos DB with ASP.NET Core Web API
In this article, we are going to learn Azure Cosmos DB in detail. We’ll start by learning what an Azure Cosmos DB is and the various APIs that it supports. Then we’ll create a Cosmos DB from the portal. After that, we’ll learn how to create an ASP.NET Core...
Using the ProblemDetails Class in ASP.NET Core Web API
In this article, we are going to talk about the ProblemDetails class and how it plays a role in standardizing error and exception handling in our .NET Core APIs. [sc name="patreon-source-code"...
Blazor Material Form Creation with File Upload and Dialogs
In the previous article, we have created our interactive product details page using different MudBlazor components (Panel, Chart, Rating, etc). As a continuation, in this article, we are going to use the Blazor Material Form component, to create a form that handles...
Using MudBlazor to Create Reach and Functional Product’s Details Page
In the previous article, we saw how to use the Blazor material table to display all the data fetched from the API, and how to apply pagination, searching, and sorting actions. But in real-world applications, we want to see more information about a single product, once...
Blazor Material Table – Server-Side Paging, Searching, Sorting
In the previous article, we have created our material navigation menu with a sidebar. Now, since we can navigate on our application, it is time to use the Blazor material table component, to display some data on our page. To fetch the data from the database, we are...
Creating Blazor Material Navigation Menu
In the previous article, we've integrated MudBlazor into our Blazor WebAssembly application and started working with some material components and theme modification. But our navigation menu doesn't look great. Well, to be honest, we didn't do anything with it. That...
Blazor Material UI – Configuration and Theme Customization
In this article, we are going to learn how to integrate MudBlazor inside the Blazor WebAssembly application, and thus create a Material UI Blazor project. We are not going to learn about Blazor WebAssembly itself. If you are not familiar with Blazor WebAssembly, we...
Creating Resilient Microservices in .NET with Polly
In this article, we are going to look at one of the key challenges with building microservices: resilience. We will look at why the problem exists, and how the .NET library Polly can help us provide a solution to this problem, enabling resilient microservices. [sc...
Azure SQL with ASP.NET Core Web API
Azure offers a set of managed products called Azure SQL that takes the SQL Server capabilities into the cloud environment. In this article, we are going to discuss those and see how to create an SQL database in Azure. Then, we’ll see how we can configure the database...
Introduction to Benchmarking in C# and ASP.NET Core Projects
In this article, we are going to cover how to benchmark C# code and ASP.NET Core projects. To accomplish this, we are going to set up a benchmarking test on a simple project and then apply the same concept to a real-world kind of application (comparing gRPC and REST)....
Using HttpClientFactory in ASP.NET Core Applications
Up until now, we've been using HttpClient directly in our services. In every service, we've created an HttpClient instance and all the required configurations. That led to repeating code in all of our service classes. [sc name="patreon-source-code"...
Canceling HTTP Requests in ASP.NET Core with CancellationToken
It is quite a possible situation to have a user navigating to the client application's page that sends an HTTP request to the server. While our app processes the request, a user can navigate away from that page. In such a case, we want to cancel the HTTP request since...




















