C# Digest #410: Value types and exceptions in .NET profiling
#410 — April 11, 2022 | View in browser |
C# Digest
Spread the word, build the community, share the knowledge with your friends.
sponsor
Treblle - Understand what’s going on with your APIs
Treblle is an API management platform that helps you understand your APIs from development to post-production. It’s an SDK that you add on top of your API. Currently, Treblle supports more than 12 languages. As soon as you add it out of the box you get features like Real-time API monitoring, Automatically generated documentation, 1 click API testing, in-depth API analytics, and many more!
this week's favorite
Value types and exceptions in .NET profiling
Here comes the end of the series about .NET profiling APIs. This final episode describes how to get fields of a value type instance and how to deal with exceptions.
Anti-corruption Layer for mapping between Boundaries
What does an anti-corruption layer solve? Most systems rely on data or behaviors from another service or an external 3rd party. The problem is they often don’t share the same semantics or data structures. Left unchecked this leads to convoluting up your own boundary with concepts from another boundary. Let me explain how you can use an anti-corruption layer as a way to translate the concepts from another boundary in isolation.
How to use ModelState validation in ASP.NET Core Web API
We always strive to separate concerns and decouple different application layers when designing our APIs. Since client input is the first thing that comes to our web API, we usually want to validate that input before further processing. Also, we want to separate that processing from the rest of the application. Let’s see how we can achieve that in ASP.NET Core.
Middleware in .NET 6 - Conditionally adding middleware to the pipeline
In this final part of the series, we will show two ways to conditionally execute middleware in the pipeline: by using settings in the AppSettings.json file to determine whether or not to add the middleware to the pipeline in the first place, or by using the incoming request's data to conditionally execute a middleware piece already in the pipeline.
What's up with TimeZoneInfo on .NET 6?
In part 1, we ended up with a lot of test data specified in a text file, but without working tests – and with a conundrum as to how we’d test the .NET Core 3.1 data which requires additional information about the “hidden” AdjustmentRule.BaseUtcOffsetDelta property.
how did you like this issue?
1 = didn't like it at all and 5 = loved it and shared it with everyone I know
newsletters
Older messages
C# Digest #409: Avoiding distributed transactions with the reservation pattern
Sunday, April 3, 2022
And more news, tutorials and articles about C# and .NET in this week's issue. #409 — April 04, 2022 View in browser C# Digest Spread the word, build the community, share the knowledge with your
C# Digest #408: Unit tests for legacy systems with .NET 6
Sunday, March 27, 2022
And more news, tutorials and articles about C# and .NET in this week's issue. #408 — March 28, 2022 View in browser C# Digest Spread the word, build the community, share the knowledge with your
C# Digest #407: Deep dive into WPF layouting and rendering
Sunday, March 20, 2022
And more news, tutorials and articles about C# and .NET in this week's issue. #407 — March 21, 2022 View in browser C# Digest Spread the word, build the community, share the knowledge with your
C# Digest #406: Adding authentication and authorisation to ASP.NET Core web applications
Sunday, March 13, 2022
And more news, tutorials and articles about C# and .NET in this week's issue. #406 — March 14, 2022 View in browser C# Digest Spread the word, build the community, share the knowledge – invite your
C# Digest #405: Modelling workflows with Finite State Machines in .NET
Sunday, March 6, 2022
And more news, tutorials and articles about C# and .NET in this week's issue. #405 — March 07, 2022 View in browser C# Digest Spread the word, build the community, share the knowledge – invite your
You Might Also Like
Google Researcher Uncovers Zero-Click Exploit Targeting Android Devices
Saturday, January 11, 2025
THN Daily Updates Newsletter cover The Kubernetes Book: Navigate the world of Kubernetes with expertise , Second Edition ($39.99 Value) FREE for a Limited Time Containers transformed how we package and
📧 Working with LLMs in .NET using Microsoft.Extensions.AI
Saturday, January 11, 2025
Working with LLMs in .NET using Microsoft․Extensions․AI Read on: my website / Read time: 6 minutes The .NET Weekly is brought to you by: Transform your database performance with RavenDB:
iOS Dev Weekly – Issue 694
Friday, January 10, 2025
Hopefully you won't see that much difference with receiving this issue, but it's ALL CHANGED behind the scenes! 😱
Daily Coding Problem: Problem #1664 [Easy]
Friday, January 10, 2025
Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Twitter. A permutation can be specified by an array P , where P[i] represents the
Spyglass Dispatch: The Case for a For-Profit OpenAI
Friday, January 10, 2025
RIP Venu • A More Political and Real Time Threads • An OpenAI Auction • Apple's Tough 2025 The Spyglass Dispatch is a newsletter sent on weekdays featuring links and commentary on timely topics
⌨️ 10 Mods to Improve Your Mechanical Keyboard — How to Set Up Quick Share on Windows
Friday, January 10, 2025
Also: Why Are Tech Companies Trying to Sell Me Expensive Clocks? How-To Geek Logo January 10, 2025 Did You Know Famed biologist Charles Darwin and US President Abraham Lincoln were born on the same day
Your best friends in design
Friday, January 10, 2025
Working With Designers Product manager & UX designer collaboration guide. How members of your product team work together is just as important as the work itself. A fundamental relationship within
Charted | How Canada Would Rank as the 51st State 📊
Friday, January 10, 2025
Donald Trump has floated the idea that Canada should be the 51st state. Here's how it compares statistically. View Online | Subscribe | Download Our App Presented by: Global X ETFs Power AI's
Pinpointing The Actual Problem 🎯
Friday, January 10, 2025
WordPress accidentally diagnoses its own business problem. Here's a version for your browser. Hunting for the end of the long tail • January 10, 2025 Pinpointing The Actual Problem A blog post from
😱Major Azure Outage in EastUS2, 🚀New AI and Azure Developer CLI Courses, azureedge.net DNS retiring
Friday, January 10, 2025
͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏