Azure Container Apps (ACA) is the “Serverless Containers” offering we’ve been waiting for. Built on Kubernetes but hiding the cluster, it integrates **KEDA** (for event-driven scaling) and **Dapr** (for building blocks) natively. Scaling to Zero Unlike App Service, ACA can scale to 0 replicas when no events are processing, saving money. Dapr Integration Enable Dapr […]
Read more โ.NET 6 Minimal APIs: Testing Strategies
Minimal APIs are great, but how do you test them without a `Startup` class? WebApplicationFactory You must expose the internal `Program` class to your test project. Now you can use `WebApplicationFactory<Program>` in xUnit to spin up the in-memory server.
Read more โAKS Network Policy: Locking Down Traffic
By default, all pods in a Kubernetes cluster can talk to each other. This is a security risk. If a frontend pod is compromised, the attacker can scan your database pod. Network Policies act as an internal firewall. Deny All Ingress Start by blocking everything. Allow Frontend to Backend Key Takeaways You must enable a […]
Read more โC# 10: File-Scoped Namespaces
Vertical whitespace is valuable. The “block-scoped” namespace syntax indents every single class in your project, wasting 4 spaces of indentation. C# 10 introduces File-Scoped namespaces to reclaim that space. Comparison Key Takeaways Use `dotnet format` or IDE cleanup to convert your entire solution automatically. You cannot mix file-scoped and block-scoped namespaces in the same file.
Read more โGitHub Copilot: The AI Revolution in Code
GitHub Copilot has officially entered Technical Preview. Having used it for a month, my workflow has fundamentally changed. It is not just autocomplete; it is idea generation. Context Awareness Copilot reads your open tabs. If I have a `User.cs` file open and I start writing a SQL query in `UserRepository.cs`, it correctly infers the column […]
Read more โ.NET MAUI: The Project Reunion
.NET MAUI (Multi-platform App UI) is the evolution of Xamarin.Forms. It introduces a single-project structure to target Android, iOS, macOS, and Windows. Single Project Structure No more `App.Android`, `App.iOS` projects. Resources (Images, Fonts) are shared automatically. The Handler Architecture MAUI ditches Renderers (slow, tightly coupled) for **Handlers**, which map virtual controls to native controls more […]
Read more โ