C# Digest #433: Serializing asynchronous operations in C#
#433 — September 19, 2022 | View in browser |
C# Digest
Spread the word, build the community, share the knowledge with your friends.
sponsor
Blazor Best Practices: Handling Errors
Errors are likely to occur, the question is how to handle them. Let’s take a look at best practices in handling them in your Blazor app.
this week's favorite
Serializing asynchronous operations in C#
A serialization pattern for asynchronous operations is making sure only one operation is active at a time, usually because the operation is itself internally stateful, and you don’t want multiple operations trying to mutate the state at the same time.
.NET One-line Scoped Initializers with Dependency Injection
As I work more consistently with the top-level style of .NET and ASP.NET Core applications, I find myself needing to do more start-up operations that have to occur before my application starts. Typically, in an ASP.NET Core application, the server is ready to begin accepting requests after a call to app.Run method or one of its variants.
A Guide to Building a .NET 6.0-Based C# Scripting Engine for Games
Welcome to the first in a series of blog posts detailing how to integrate .NET 6.0 C# scripting support into a C++ Windows game engine. Most of what I am going to detail is based on my research and work in developing a C# scripting system for my DigiPen game projects and is most likely not perfect, but I can guarantee the solution works.
If you ever deal with legacy code, it is worth understanding what happens here in a bit more detail. A few years ago, discards were not a thing in C#, but recent versions have gradually been adding more support for them. This history means that not everything is as it seems, and it can be useful to know that, because it can explain some strange-looking practices in older code.
Beware of records, with expressions and calculated properties
Given their terseness, even ignoring the other records characteristics, as soon as I’m creating a type that I’m expecting to be immutable, I immediately start with a record. However this might not always be adequate, and in this post we’ll look at a very specific example where I introduced a bug in the code due to not taking into consideration all of the records characteristics.
courses
Free Learnk8s Training Series: Scaling Apps, Nodes, and Clusters
Learnk8s is back with a new virtual lab series. Supported by documentation, scripts, code examples, and a hands-on demo, you’ll deploy and scale an application using the Linode Kubenetes Engine to create clusters. Registration is free and all 3 sessions are open now. Reserve your seat today!
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 #432: A comprehensive design patterns library
Monday, September 12, 2022
And more news, tutorials and articles about C# and .NET in this week's issue. #432 — September 12, 2022 View in browser C# Digest Spread the word, build the community, share the knowledge with your
C# Digest #431: Performance Improvements in .NET 7
Sunday, September 4, 2022
And more news, tutorials and articles about C# and .NET in this week's issue. #431 — September 05, 2022 View in browser C# Digest Spread the word, build the community, share the knowledge with your
C# Digest #430: History of Microsoft Azure
Sunday, August 28, 2022
And more news, tutorials and articles about C# and .NET in this week's issue. #430 — August 29, 2022 View in browser C# Digest Spread the word, build the community, share the knowledge with your
C# Digest #429: New in Entity Framework 7: Bulk Operations with ExecuteDelete and ExecuteUpdate
Monday, August 22, 2022
And more news, tutorials and articles about C# and .NET in this week's issue. #429 — August 22, 2022 View in browser C# Digest Spread the word, build the community, share the knowledge with your
C# Digest #428: A .NET distributed cache with a ~25 nanosecond read time!
Sunday, August 14, 2022
And more news, tutorials and articles about C# and .NET in this week's issue. #428 — August 15, 2022 View in browser C# Digest Spread the word, build the community, share the knowledge with your
You Might Also Like
Mapped | Unemployment Rate By U.S. State in 2024 💼
Tuesday, November 26, 2024
As of October 2024, DC and Nevada tied for the highest unemployment rate in the US at 5.7%. Which states saw the lowest rates? View Online | Subscribe | Download Our App FINAL CHANCE - ENDS TONIGHT!
🔊 7 DIY Tips for Soundproofing a Room — Why I Switched to Xfce for Linux Mint
Tuesday, November 26, 2024
Also: Home Theater Sound Terms Explained, and More! How-To Geek Logo November 26, 2024 Did You Know The shiny layer of a CD doesn't contain the data; the plastic polycarbonate layer does. The shiny
JSK Daily for Nov 26, 2024
Tuesday, November 26, 2024
JSK Daily for Nov 26, 2024 View this email in your browser A community curated daily e-mail of JavaScript news JavaScript Certification Black Friday Offer – Up to 54% Off! Certificates.dev, the trusted
NumPy, Loop Targets, Vector Animation, and More
Tuesday, November 26, 2024
NumPy Practical Examples: Useful Techniques #657 – NOVEMBER 26, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo NumPy Practical Examples: Useful Techniques In this tutorial, you'll learn how to
Your Games Quarterly newsletter has arrived
Tuesday, November 26, 2024
What's new for games in Google Play and Android Email not displaying correctly? View it online November 2024 The First Developer Preview of Android 16 The First Developer Preview of Android 16
Daily Coding Problem: Problem #1620 [Hard]
Tuesday, November 26, 2024
Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Dropbox. Sudoku is a puzzle where you're given a partially-filled 9 by 9 grid with
Final Hours: Help Save "The Art of Data" From Falling Short 🙏
Tuesday, November 26, 2024
Will Visual Capitalist end up revealing the secrets behind data storytelling? There are 12 hours left to change the fate of "The Art of Data". View Online | Subscribe | Download Our App Help
Spyglass Dispatch: Meta's Bluesky • Apple's China AI Problem • Apple's Chinese iPhone Problem • Perplexity Voice Pin • Susan's Message on Lung Cancer
Tuesday, November 26, 2024
Meta's Bluesky • Apple's China AI Problem • Apple's Chinese iPhone Problem • Perplexity Voice Pin • Susan's Message on Lung Cancer The Spyglass Dispatch is a free newsletter sent out
🎁 Say Goodbye to Adobe and Hello to UPDF's Universal PDF Editor— 50% Off This Black Friday!
Tuesday, November 26, 2024
Promoted by UPDF How-To Geek Logo November 26, 2024 This email is sponsored by UPDF. Product choices and opinions expressed are from the sponsor and do not necessarily reflect the views of the How-To
What's coming in Go 1.24
Tuesday, November 26, 2024
Plus Brad Fitzpatrick on complexity and Go. | #533 — November 26, 2024 Unsub | Web Version Together with Ardan Labs Go Weekly GoMLX: ML in Go without Python — Eli recently wrote about Go's