C# Digest #433: Serializing asynchronous operations in C#

And more news, tutorials and articles about C# and .NET in this week's issue.

#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.

C# Lambda Discards

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

© 2022 Bonobo Press

Would you like to advertise with us? Check out our latest media kit for more information.
If you no longer wish to receive these emails, click to unsubscribe.

Key phrases

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

[Python Mastery] The hidden costs of "copy-paste" Python programming

Friday, October 7, 2022

Hey there, Here's a development story that plays out thousands of times each day: Avid Pythonista Max is working on a function to find the 10 oldest files in a nested directory hierarchy. He needs

Why your startup needs a prenup

Friday, October 7, 2022

TechCrunch+ Newsletter TechCrunch+ logo TechCrunch+ Roundup logo By Walter Thompson Friday, October 07, 2022 Welcome to TechCrunch+ Friday Image Credits: skodonnell / Getty Images In the early days of

iOS Dev Weekly - Issue 579

Friday, October 7, 2022

The question of what technologies to use has no definitive answer! 🎲🤷‍♂️ View on the Web Archives ISSUE 579 October 7th 2022 Comment Why do I link to Alexandre Colucci's articles reporting on

Daily Coding Problem: Problem #898 [Easy]

Friday, October 7, 2022

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. Implement a stack API using only a heap. A stack implements the following

Wireless Apple CarPlay? How to add it to your car

Friday, October 7, 2022

Managers can't agree on who to hire; QuietComfort Earbuds II review -- ZDNET ZDNET Tech Today - US October 7, 2022 placeholder How to add wireless Apple CarPlay to your car Wired connections are a

Issue #457: 3D Diffusion vs GET3D, acid traces, and Tranquility

Friday, October 7, 2022

Weekly newsletter about HTML5 Game Development. Is this email not displaying correctly? View it in your browser. Issue #457 - October 7th 2022 If you have anything you want to share with the HTML5 game

🔎 What PMs should know about Product Marketing

Friday, October 7, 2022

Product Marketing - what product managers should know Do you think all you need to know about product marketing is “it's that stuff those product marketing managers do”? While product marketing may

Ranked | The World’s Most Surveilled Cities 📹

Friday, October 7, 2022

The world's most surveilled cities contain hundreds of thousands of cameras. See where these cities are located in this infographic. View Online | Subscribe Presented by: Special Report Now

Google Is Not Apple, and It Should Stop Trying to Be

Friday, October 7, 2022

Did You Know?: Dale Carnegie, most famous for the book How to Win Friends and Influence People, changed his last name from “Carnagey” to “Carnegie” in honor of the steel magnate, Andrew Carnegie, and

Join TechCrunch Live with Casa Verde Capital and Dutchie

Friday, October 7, 2022

TechCrunch Live - Wed, Oct 12 - 11:30am PDT TechCrunch Live on Oct 12 How Dutchie raised half a billion for cannabis tech Ross Lipson co-founded Dutchie in 2017 and has since led the company to a multi