Home Archive Blazor scoped services, Aspire, and Copilot – .NET News Daily Issue #209 (Jun 2, 2025)

Editor's note

I kept this one deliberately mixed: framework gotchas, cloud tooling, design patterns, and a bit of fundamentals. The Blazor scoped services piece is a good reminder that lifecycle assumptions can bite you in real apps, and the Aspire conversion walkthrough is practical if you’re modernizing local dev stacks. There’s also solid value in the observability and security reads for teams shipping production .NET today.

Blazor scoped services, Aspire, and Copilot

Welcome to the Monday Pit Stop of your .NET journey, where seasoned developers tune their engines for another week of exhilarating code sprints. As you sip your coffee and rev up for the week ahead, consider this newsletter your roadmap to all things innovative and indispensable in the .NET realm. From the latest framework updates to insightful best practices, we’ve got the turbo boost you need to stay ahead of the curve. Buckle up and let's accelerate into another week of coding excellence with your .NET community by your side!

Today's Articles

Why Blazor’s Scoped Services Broke My Multi-Tab Experience

https://visitkans.medium.com/why-blazors-scoped-services-broke-my-multi-tab-experience-cccd7a2b9583

— and How I Solved It with ProtectedSessionStorage Continue reading on CareerByteCode »

Article preview

Converting a docker-compose file to .NET Aspire

https://andrewlock.net/converting-a-docker-compose-file-to-aspire/

In this post I describe how I converted the deployment method of the mailing-list manager lismonk from a docker-compose.yml file to an Aspire app host project

Article preview

Best practices for architecting SaaS applications on Azure | DEM505

https://www.youtube.com/watch?v=KrxHq5CvHW4

Article preview

Delegates, Events, and Actions in C#: From Zero to Hero

https://medium.com/@hamidmusayev/delegates-events-and-actions-in-c-from-zero-to-hero-2f463681f0d5

If you’re learning C# and run into delegates, events, or actions, they might sound abstract at first. But once you understand them, they…

Article preview

Boost Your .NET Code: 5 Killer Techniques for the Repository Pattern (with Code!)

https://dotnetfullstackdev.medium.com/boost-your-net-code-5-killer-techniques-for-the-repository-pattern-with-code-5b2812ba9546

Unlock the True Power of Repositories in .NET Applications

Article preview

When and Why to Use the Complex Type in C# .NET 9

https://medium.com/@anderson.buenogod/when-and-why-to-use-the-complex-type-in-c-net-9-4ef8c0c4301d

In C# .NET 9 development, we often work with simple numeric types like int, double, or decimal. However, in some scientific and…

Article preview

Vector Support Public Preview now extended to Azure SQL MI

https://devblogs.microsoft.com/azure-sql/4561-2/

We are thrilled to announce that Azure SQL Managed Instance now supports Vector type and functions in public preview. This builds on the momentum from Azure SQL Database, where vector support has bee...

Article preview

Exception-Driven Development: Understanding an Anti-Pattern

https://medium.com/@vikpoca/exception-driven-development-understanding-an-anti-pattern-c59da977e727

Here we discuss how Exception-Driven Development turns exceptions from rare alarms into everyday traffic signals-slowing your code…

Article preview

What Every Senior .NET Engineer Should Know About Observability

https://caffeinatedcoder.medium.com/what-every-senior-net-engineer-should-know-about-observability-b85dffcce261?source=rss------dotnet-5

As modern applications grow increasingly distributed and complex, the need for robust observability is no longer optional — it’s critical…

Article preview

Customizing Copilot in VS Code

https://www.youtube.com/watch?v=WdZCv4OZcxM

Article preview

New GitHub Copilot Global Bootcamp: Now with Virtual and In-Person Workshops!

https://dev.to/azure/new-github-copilot-global-bootcamp-now-with-virtual-and-in-person-workshops-3cmh

The GitHub Copilot Global Bootcamp started in February as a fully virtual learning journey — and it was a hit. More than 60,000 developers joined the first edition across multiple languages and region...

Article preview

The Art of Clean & Efficient Code in .NET

https://www.c-sharpcorner.com/article/the-art-of-clean-efficient-code-in-net/

Writing code isn’t just about making things work—it’s an art! Clean, efficient, and well-optimized code ensures better performance, scalability, and maintainability.

<img src="https://cdn.dotnetnews.co/imports/a3b6e14cfff7b40b97cebfcfe4d8e08ece295940e21979ba7488617aecbcffed.png" width="100%" style="display:block" class="hide-on-mobile" data-bit="iit" alt="Article preview"s Guide" height="200" loading="lazy" decoding="async">

Stop Writing Boring APIs: How to Design Fluent C# Interfaces That Developers Love

https://medium.com/@mohsho10/stop-writing-boring-apis-how-to-design-fluent-c-interfaces-that-developers-love-eb6e1f240d5a

Teach expressive, chainable, and intention-revealing APIs using advanced C# language tricks.

Article preview

Stop Writing 10 Repository Methods for One Query!— Harness the Specification Pattern in EF Core

https://medium.com/@michaelmaurice410/stop-writing-10-repository-methods-for-one-query-harness-the-specification-pattern-in-ef-core-9ba194bc64db?source=rss------dotnet-5

What’s the story about? It’s the morning after an API launch. A simple new endpoint — “Get gatherings by creator name and include…

Article preview

Revisiting using a Content Security Policy (CSP) nonce in Blazor

https://damienbod.com/2025/05/26/revisiting-using-a-content-security-policy-csp-nonce-in-blazor/

This blog looks at implementing a strong Content Security Policy (CSP) in web applications implemented using Blazor and ASP.NET Core. When implementing CSP, I always recommend using a CSP nonce or at ...

Article preview

No Projects, Just Code: How dotnet run app.cs

https://medium.com/@ashokreddy343/no-projects-just-code-how-dotnet-run-app-cs-9436bf69a1f4?source=rss------dotnet-5

Discover how .NET 10 Preview 4 introduces a lightweight way to run C# files without projects — boosting productivity, simplifying scripts…

Article preview

Getting Started with ASP.NET Core Web API: A Beginner's Guide

https://www.c-sharpcorner.com/Blogs/getting-started-with-asp-net-core-web-api-a-beginners-guide

This beginner-friendly blog walks you through setting up the project, creating models and controllers, connecting to an SQL Server database using Entity Framework Core, and testing your API.

<img src="https://cdn.dotnetnews.co/imports/a3b6e14cfff7b40b97cebfcfe4d8e08ece295940e21979ba7488617aecbcffed.png" width="100%" style="display:block" class="hide-on-mobile" data-bit="iit" alt="Article preview"s Guide" height="200" loading="lazy" decoding="async">

Understanding Task.RunSynchronously in C#

https://medium.com/@info_4533/understanding-task-runsynchronously-in-c-272eb62c0e27

A Deep Dive

Article preview

Want to Level Up as a .NET Developer? Start With the Fundamentals

https://medium.com/@developersanchit1/want-to-level-up-as-a-net-developer-start-with-the-fundamentals-a7c659120404

Desperate to Level Up as a .NET Developer? Begin with the Basics It’s easy to rush into the newest frameworks, architecture patterns, or…

Article preview

Basics: How a .NET Program Runs

https://medium.com/@srividyanan/basics-how-a-net-program-runs-fc1695754cc5?source=rss------dotnet-5

A .NET program runs through the key phases of Compilation, Execution, and Runtime, managed by the .NET Common Language Runtime (CLR).

Article preview

Elevating Software Performance: Advanced Code Optimization Techniques for Developers

https://medium.com/@ebubekirergun/elevating-software-performance-advanced-code-optimization-techniques-for-developers-338b1aa94960

In the realm of software development, code optimization is a critical skill that can transform applications from sluggish to seamless…

Article preview

How to Secure Your ASP.NET Core Application Properly

https://medium.com/dot-net-sql-learning/how-to-secure-your-asp-net-core-application-properly-075764bee490

In today’s internet-dependent era, application security has become an essential issue. Especially when you are building a web application… Continue reading on Dot Net, API & SQL Learning »

Article preview

Jasen's take on today's picks

Why Blazor’s Scoped Services Broke My Multi-Tab Experience

A real Blazor lifecycle gotcha that can surface only after users open a second tab.

Converting a docker-compose file to .NET Aspire

A practical path from docker-compose to Aspire, which is increasingly useful for local orchestration.

Best practices for architecting SaaS applications on Azure | DEM505

A nice mix of Azure architecture advice and a useful reminder that SaaS fundamentals still matter.

Delegates, Events, and Actions in C#: From Zero to Hero

Good discussion of delegates, events, and actions for anyone who wants cleaner C# APIs.

Boost Your .NET Code: 5 Killer Techniques for the Repository Pattern (with Code!)

Repository and specification pattern pieces for teams trying to keep EF Core code from sprawling.

When and Why to Use the Complex Type in C# .NET 9

The C# 9 complex type article is a useful .NET 9 refresher, especially if you track new language features.

Vector Support Public Preview now extended to Azure SQL MI

Azure SQL vector support is one of those platform updates worth watching if you’re building AI-adjacent data features.

Exception-Driven Development: Understanding an Anti-Pattern

A helpful anti-pattern write-up: exceptions are for exceptional cases, not control flow.

What Every Senior .NET Engineer Should Know About Observability

Observability guidance that should resonate with senior engineers responsible for production debugging.

Customizing Copilot in VS Code

Copilot customization in VS Code plus the global bootcamp announcement makes the AI tooling section feel timely.

New GitHub Copilot Global Bootcamp: Now with Virtual and In-Person Workshops!

Clean-code, fluent interface, and specification pattern articles round out the design-heavy middle of the issue.

The Art of Clean & Efficient Code in .NET

The fundamentals pieces are a good reset: how .NET runs, how programs start, and where newer devs should focus.

Stop Writing Boring APIs: How to Design Fluent C# Interfaces That Developers Love

Performance optimization and ASP.NET Core security close the loop on shipping code that is both fast and defensible.

Related issues

📬 Get daily .NET content delivered to your inbox