Hosting MongoDB in .NET Aspire
Today, you will learn how to integrate your distributed .NET Aspire application with MongoDB by using Aspire Components. We will walk through an example application that populates a MongoDB instance with some data and retrieves the data inside one of the hosted services. But before we talk about it, I’ll need Continue Reading
.NET Aspire Made Easy
.NET Aspire is a technology that completely revolutionized the .NET ecosystem. Nobody expected it, but it took the software engineering community by storm when it was released. This technology makes developing, building, and deploying orchestrated distributed applications incredibly easy. Compared to other distributed application development frameworks, it’s very straightforward to Continue Reading
Using SQL Database Components in .NET Aspire
We previously looked at Aspire components, special libraries used by .NET Aspire to wrap commonly used applications and infrastructure components. These libraries consist of containers, but it’s simpler to use them instead of using containers directly. After all, Aspie components were specifically designed to work in Aspire. Today, we will look Continue Reading
Using Single Sign-On for Securing Applications in ASP.NET Core
Securing web applications is extremely important, as you do not want unauthorized people to gain access to your data. The most convenient way of securing an application is to use single sign-on (SSO) because it allows users to authenticate once and gain access to all apps within the same system. Continue Reading
Hosting a Keycloak Container in .NET Aspire
In the previous article, we discussed enabling single sign-on authentication in .NET Aspire. Today, you will learn how to do it using a Keycloak container. The material presented in this article serves two purposes: The sample solution we will be talking about is available here. In order to be able to follow Continue Reading
A Guide To Securing .NET Aspire Apps
If you publish a web application and make it publicly accessible, you will want to make sure only authorized users can access it, unless, of course, your application is just a trivial website. Applications orchestrated by .NET Aspire are no exception. Because .NET Aspire is a platform for building complex Continue Reading
Integration-testing .NET Aspire Apps
Having automated test coverage for our software apps is very important. Although manual tests sometimes have their place, automated tests allow us to verify the validity of our application logic much more efficiently than any manual tests would. Automated tests also allow us to check if a change in one Continue Reading
Why .NET Aspire Components Are Powerful
As well as being able to orchestrate .NET projects, Aspire can also orchestrate the so-called Aspire components. These components are special libraries that add popular packages to our distributed application, which include the following: Today, we will talk about Aspire components, why they are useful, and how to add them to Continue Reading
How .NET Aspire Does Health Checks And Why It Matters
When we look at the Resources tab of the .NET Aspire dashboard, we find the State column in the table displayed there. This column shows the current status of each service managed by the .NET Aspire. Ideally, we want each of these services to be shown as Running with the green tick next to it, as Continue Reading
Monitoring Apps Inside .NET Aspire
Today, we will talk about the process of monitoring applications orchestrated by .NET Aspire. But before we do it, let’s remind ourselves why monitoring is something we absolutely must have in our applications. Monitoring applications is crucial for several reasons: Let’s now look at the different types of monitoring available Continue Reading
The Anatomy of .NET Aspire Application
.NET Aspire is an orchestration technology introduced in November 2022 alongside the .NET 8 release. And since it was released, it took the .NET community by storm. This technology allows developers to easily build and debug distributed applications locally, which was traditionally hard to do. With .NET Aspire, you don’t Continue Reading
TDD: How to Do it Properly and Why It’s Easy
A short practical guide you can apply right away If you are a software developer, you have probably heard of test-driven development (TDD). Some people even insist that you can’t write good quality software without it! We will not argue about whether or not TDD is essential. What this short Continue Reading
Building an audio player app with the .NET Uno Platform
Previously, in a tutorial presented as a series of articles, we looked at how to use .NET to build an audio player that can run on Windows, Mac, and Linux. This tutorial explains how the open-source NetCoreAudio NuGet package was built. Today, we will go through an example of how Continue Reading
The most important skill for 21st century
We are living in the information age. Many traditional industries and jobs associated with them are on the way out. Internet and smart technologies have radically changed how we live and work. Although technology has improved our lives overall, it also made certain things much more challenging. One of the Continue Reading
The Easiest Way to Learn Design Patterns in C#
A deep understanding of design patterns and the ability to apply them to relevant design challenges is key to writing good code. They ensure the code is easy to understand and maintain, can be extended in the face of evolving requirements, and can be reused as needed. This course will Continue Reading
Building AWS Lambda Functions with C# and .NET
Serverless applications enable businesses to deploy highly-scalable workloads in a very cost-efficient manner. AWS Lambda is the main type of serverless application used by the highly popular Amazon Web Services (AWS) cloud. This course is designed to empower individuals with the skills and knowledge to develop robust and scalable AWS Continue Reading
Contradictions in TDD and why it’s merely a guidance and not the gospel
Test-driven development (TDD) is a highly popular and highly misunderstood subject. And there is no surprise as to why it’s so misunderstood. If you look at any single guide on what the canonical TDD rules are supposed to be, it would be vague and incomplete. Today, I will demonstrate to Continue Reading
Using xUnit for Test-Driven Development in .NET
Test-driven development (TDD) is a proven way of developing high-quality applications with clean and well-maintainable code. In this course, you will learn how to use the xUnit testing library to apply the principles of test-driven development on .NET. You will start this course by reviewing the fundamentals of xUnit and Continue Reading