I needed this example in .NET 6, and I was able to update the example to .NET 6 very easily. Are you interested in a PR that upgrades to .NET 6 (or .NET 7)? Thank you