Microsoft .NET

Microsoft .NET | News, how-tos, features, reviews, and videos

Black and white heavy duty bank vault

How to work with Azure Key Vault in .NET Core

Azure Key Vault is a safe and secure place to store the tokens, keys, passwords, certificates, and other sensitive data used in your .NET Core applications. Here’s how to work with it in C#.

1 measure roi

How to use EventCounters in .NET Core

Take advantage of EventCounters in .NET Core to gain insights into your application’s performance in real time.

shutterstock 1152151433 web of ropes and a big knot against a blue sky

How to avoid spaghetti code in C#

Spaghetti is good eating but bad programming. Follow these 10 best practices to keep your C# code clean, lean, and easy to maintain.

Matryoshka /Russian nesting dolls > inheritance / sequencing / hidden layers

Composition vs. inheritance in OOP and C#

Understand the key concepts behind composition and inheritance that allow you to build reusable and flexible types in your .NET applications.

A leaping dog catches a flying disc, midair.

How to use advanced Dapper features in ASP.NET Core

Take advantage of stored procedures, query pagination, query caching, and other advanced Dapper feature to simplify data access and ensure high performance.

automated assembly line of robotic arms  and a conveyor belt

How to use factory-based middleware activation in ASP.NET Core

Factory-based middleware activation is a more flexible and dynamic approach to configuring and activating middleware components. Here’s how to take advantage of it in ASP.NET Core 7.

fire flames

Microsoft .NET 8 boosts Blazor, WebAssembly

Microsoft works to improve web app performance with Blazor server-side rendering and streaming rendering, Blazor WebAssembly runtime improvements.

leaky faucet by Maarten Van Damme, CC BY 2.0 via Flickr

How to use the rate limiting algorithms in ASP.NET Core

Learn how to use the fixed window, sliding window, token bucket, and concurrency algorithms in ASP.NET Core 7 to protect your applications and APIs against malicious attacks or overuse.

car speedometer

How to use response compression in ASP.NET Core

Take advantage of response compression middleware in ASP.NET Core to reduce bandwidth requirements and improve the responsiveness of your apps.

Developers work together to review lines of code in an office workspace.

Microsoft .NET Community Toolkit 8.2 shines on MVVM

Custom attributes for [RelayCommand], new property change hooks for [ObservableProperty] fields, MVVM code fixers, and MVVM source generator optimizations are also featured in the update.

hip young man blowing up blue balloon

How to use request decompression in ASP.NET Core 7

Take advantage of the request decompression middleware in ASP.NET Core 7 to enable your API endpoints to accept requests that contain compressed content.

Developers work together to review lines of code in an office workspace.

Applying the DRY, KISS, and YAGNI principles in C#

If you don’t repeat yourself, keep it simple, and implement only the functionality you really truly need, your C# code will be cleaner, simpler, and much easier to maintain.

astract code [Thinkstock]

Microsoft unveils C# 12 language enhancements

Three new features for C# 12 are available in the latest .NET 8 and Visual Studio 17.6 previews.

group of hands holding together multi colored gears

How to use the unit of work pattern in ASP.NET Core

Take advantage of the unit of work design pattern to build flexible, extensible, and reusable data access layers in your ASP.NET Core applications.

wait sign

Get started with the rate limiting middleware in ASP.NET Core 7

Take advantage of the new rate limiting middleware in ASP.NET Core 7 to protect against malicious attacks on your applications and ensure equitable use of server resources.

networking abstract

Working with Azure’s Data API builder

Add REST and GraphQL APIs to any database with a handy .NET CLI tool.

birds in flight leader lead team syncronized

How to work with EF Core migrations in ASP.NET Core

Take advantage of migrations in EF Core to manage database schema changes over time and keep them in sync with the data models of your ASP.NET Core applications.

error neon mistake

How to handle errors in minimal APIs in ASP.NET Core

How to use the exception handling middleware in ASP.NET Core to handle errors gracefully in your minimal API applications.

fire flames

.NET 8 Preview 2 brings Blazor performance boosts

ASP.NET Core improvements in the second .NET 8 preview include a high-performance Blazor component for displaying tabular data and partial JIT compilation for Blazor WebAssembly apps.

cloud computing [by RawPixel - CC0 via Pexels]

Microsoft introduces reliable web app pattern for .NET cloud apps

Microsoft’s reliable web app pattern is a set of best practices for migrating ASP.NET web applications to its Azure cloud.

Load More