Skip to main content

Steve Gordon – Code with Steve

  • About Me
  • Contact
  • Subscribe
Introducing the new IHostedLifecycleService Interface in .NET 8

Introducing the new IHostedLifecycleService Interface in .NET 8

9th August 202325th January 2024 Steve Gordon

As regular readers will be aware, an area of .NET which I follow closely is Microsoft.Extensions.Hosting. I’ve already blogged about a change in .NET 8, where new concurrency options have been introduced to support parallel running of the StartAsync and StopAsync across multiple IHostedServices. In this post, we’ll look at some new lifecycle events introduced […]

Read More

Concurrent Hosted Service Start and Stop in .NET 8

17th May 202325th January 2024 Steve Gordon

In this post, I will describe a new feature of the Microsoft.Extensions.Hosting library coming in .NET 8 (available since preview 4) affecting hosted services. Let’s first begin with a brief recap of hosted services. The hosting library for .NET, used in both the ASP.NET Core project template and the Worker Service template, provides the capability […]

Read More

Accessing State in System.Text.Json Custom Converters

18th October 202210th October 2024 Steve Gordon

In this post, I describe several techniques that can provide additional state to custom JsonConverters when using System.Text.Json. While building the new .NET client for Elasticsearch, one of the key objectives I gave myself was to move away from the internal Utf8Json-based serializer used in v7. The obvious choice was to look at redesigning the […]

Read More

Creating, Inspecting and Decompiling the World’s (Nearly) Smallest C# Program

15th June 202225th January 2024 Steve Gordon

In this post, I thought it might be fun to create the world’s (nearly) shortest C# program and then deep dive into some of the fine details of what happens behind the scenes. This post is not intended to solve a real-world problem but I hope it’s well worth your time spent reading it. By […]

Read More

Using the Roslyn APIs to Analyse a .NET Solution

13th April 202225th January 2024 Steve Gordon

In this post, I demonstrate how to analyse a .NET solution using the Roslyn APIs and aMsBuildWorkspace.

Read More

Posts pagination

Newer posts 1 2 3 4 … 35 Older posts

Pluralsight Courses


  • Creating Background Services in ASP.NET Core and .NET
  • Dependency Injection in ASP.NET Core 6
  • Configuration and Options in ASP.NET Core 6
  • String Manipulation and Regex in C#10
  • String Manipulation in C#: Best Practices
  • Integration Testing ASP.NET Core Applications: Best Practices
  • Implementing Cross-cutting Concerns for ASP.NET Core Microservices

Follow me

  • Twitter
  • Github
  • LinkedIn
  • YouTube
  • Mastodon

Support This Blog

Become a Patron!

Support this blog!Buy me a coffee!

Recent Posts

  • How dotnet.exe resolves and loads the hostfxr library – Exploring the .NET muxer
  • A Brief Introduction to the .NET Muxer (aka dotnet.exe)
  • Implementing ASP.NET Core Automatic Span (Activity) Linking for Internal Redirects with Middleware on .NET 9
  • An Efficient Dictionary for IPAddress Tracking using .NET 9 with AlternateLookup and IAlternateEqualityComparer
  • Receiving GitHub Webhooks When Using the ASP.NET Core Developer Certificate

.NET South East

Please come and join our new .NET User  Group in Brighton, UK.

Categories

Archives

  • Twitter
  • Github
  • LinkedIn
  • YouTube
  • Mastodon
  • Twitter
  • Github
  • LinkedIn
  • YouTube
  • Mastodon
Copyright © Steve Gordon 2019 Theme by Colorlib Powered by WordPress