The .NET Stacks #64: ⚡ Looking at Functions support in .NET 6
Tags: dotnet, csharp, azure
Published: 2021-10-03 22:52:07

---
title: The .NET Stacks #64: ⚡ Looking at Functions support in .NET 6
published: true
date: 2021-10-03 16:26:27 UTC
tags: dotnet, csharp, azure
canonical_url: https://www.daveabrock.com/2021/10/03/dotnet-stacks-64/
---

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9xggg8vmhf55c2xofx4g.png)

Welcome to another week. I hope you had a good weekend. Before getting to the community links, I've got some quick items for you this week:

- Azure Functions .NET 6 support
- .NET Foundation Board election news
- Syncing namespaces in Visual Studio
- Last week in the .NET world

* * *

## Azure Functions .NET 6 support

Last week, Anthony Chu [announced the availability of the public preview for Azure Functions 4.0](https://techcommunity.microsoft.com/t5/apps-on-azure/announcing-azure-functions-4-0-public-preview-with-net-6-support/ba-p/2772098)—which includes .NET 6 support. In case you weren't aware, Azure Functions has two programming models: in-process and isolated. Azure Functions 4.0 supports .NET 6 through the isolated model.

As Anthony states, the isolated model gives you greater control over Functions configuration and allows you to use DI and middleware as you do in your ASP.NET Core apps. Currently, you can only use this from CLI tooling. Soon, there will be support for Visual Studio and Visual Studio closer to the general .NET 6 release date in November (which is when Azure Functions 4.0 will be off public preview and generally available).

Since we're talking about Azure Functions, long-term the in-process model will be retired in favor of the isolated model. As you can see from this diagram I stole from Microsoft, that won't happen until .NET 7 in November 2022.

![](https://www.daveabrock.com/content/images/2021/09/image-6.png)

* * *

## .NET Foundation Board election news

The results are out for the [2021 .NET Foundation Board elections](https://dotnetfoundation.org/blog/2021/09/22/net-foundation-election-results-2021). Congratulations to the following folks who made the cut:

- Mattias Karlsson
- Frank Odoom
- Rob Prouse
- Javier Lozano (_re-elected_) 

* * *

## Syncing namespaces in Visual Studio

As [Oleg Kyrylchuk mentions](https://twitter.com/okyrylchuk/status/1440419281603235842), in the last preview of Visual Studio 2022 you can syncronize namespaces to mirror how the folder structure looks in Solution Explorer. This is in preview, but looks to be a cool feature—and should be done with caution, as there isn't currently a way to undo easily.

{% twitter 1440419281603235842 %}

* * *

## 🌎 Last week in the .NET world

### 📢 Announcements

- Grace Taylor [announces a collection of VS themes](https://devblogs.microsoft.com/visualstudio/custom-themes).
- The .NET Foundation [election results are in](https://dotnetfoundation.org/blog/2021/09/22/net-foundation-election-results-2021).
- On September 30 [Microsoft will be hosting a "Let's Learn .NET" on IoT](https://docs.microsoft.com/en-us/events/learntv/lets-learn-dotnet-iot-sept-2021).

### 📅 Community and events

- The Azure SDK team [recaps the September release](https://devblogs.microsoft.com/azure-sdk/azure-sdk-release-september-2021).
- Steve Smith [reviews a new DI book](https://ardalis.com/dependency-injection-book-review/).
- Josef Ottosson [created a library that packages convenient configuration methods in .NET Core](https://josef.codes/jos-configuration-convenient-methods-for-configuration-in-dotnet-core/).
- For community standups, Desktop [talks about Hot Reload updates](https://www.youtube.com/watch?v=DjNf_EfccAc), EF [talks about PostgreSQL and EF Core](https://www.youtube.com/watch?v=Ya_cmZRwACM), and ASP.NET [talks about how to contribute to the platform](https://www.youtube.com/watch?v=hVdwb41FPvU).
- The .NET Docs show talks about [home automation with Azure Precept](https://www.youtube.com/watch?v=KlP5ofXhu-c).

### 🌎 Web development

- Nigel Sampson [adds cross-cutting concerns to a GraphQL service](https://compiledexperience.com/blog/posts/crosscutting-grapql).
- Cody Merritt Anhorn [wires up conditional User-Agent logic with Blazor](https://codyanhorn.tech/blog/code-snippet-conditional-user-agent-logic-with-blazor).
- Scott Hanselman [shows how to change a site's Dark Mode based on the user's OS preference](https://www.hanselman.com/blog/how-to-detect-if-the-users-os-prefers-dark-mode-and-change-your-site-with-css-and-js), and also [writes about unit testing Minimal APIs in .NET 6](https://www.hanselman.com/blog/minimal-apis-in-net-6-but-where-are-the-unit-tests).
- Anthony Giretti [uses Angular and .NET 6 to stream JSON responses](https://anthonygiretti.com/2021/09/22/asp-net-core-6-streaming-json-responses-with-iasyncenumerable-example-with-angular/).

### 🥅 The .NET platform

- Matt Eland [writes about LINQ .NET 6 improvements](https://raygun.com/blog/linq-net-6-improvements/).
- Andrew Lock [compares the WebApplicationBuilder to the generic host in .NET 6](https://andrewlock.net/exploring-dotnet-6-part-2-comparing-webapplicationbuilder-to-the-generic-host/).
- Khalid Abuhakmeh [provides some "interesting technology tips."](https://khalidabuhakmeh.com/interesting-technology-tips-vol-1)

### ⛅ The cloud

- Muhammed Saleem [works with Azure Table Storage in ASP.NET Core](https://code-maze.com/azure-table-storage-aspnetcore/).
- Abhishek Gupta [uses the Azure Cosmos DB Linux emulator and VS Code](https://dev.to/azure/enhance-local-development-experience-using-the-azure-cosmos-db-linux-emulator-and-vs-code-1kce).
- Adam Storr asks: [is accessing query string values in Azure Functions hard?](https://adamstorr.azurewebsites.net/blog/is-accessing-querystring-values-in-azure-functions-hard)
- Cyrille Visser [optimizes Azure Cosmos DB queries](https://devblogs.microsoft.com/cosmosdb/getting-started-end-to-end-example-2).
- Anthony Chu [announces Azure Functions 4.0 public preview with .NET 6 support](https://techcommunity.microsoft.com/t5/apps-on-azure/announcing-azure-functions-4-0-public-preview-with-net-6-support/ba-p/2772098).
- Damien Bowden [creates Microsoft Teams meetings in ASP.NET Core using Microsoft Graph](https://damienbod.com/2021/09/20/creating-microsoft-teams-meetings-in-asp-net-core-using-microsoft-graph/).

### 📔 Languages

- Ian Griffiths [writes about implicit global using directives in C# 10](https://endjin.com/blog/2021/09/dotnet-csharp-10-implicit-global-using-directives.html).
- Davide Bellone [uses aliases in C#](https://www.code4it.dev/csharptips/using-alias).
- Thomas Claudius Huber [writes about file-scoped namespaces in C# 10](https://www.thomasclaudiushuber.com/2021/09/21/c-10-file-scoped-namespaces/).

### 🔧 Tools

- Michael Shpilt [writes about 6 tools to detect and fix performance issues in .NET](https://michaelscodingspot.com/performance-tools-dotnet/).
- Sarah Lean [looks at the GitHub CLI](https://launchdarkly.com/blog/git-branching-strategies-vs-trunk-based-development/).
- Elijah Manor [lists recent Git branches](https://elijahmanor.com/byte/git-recent-branches).
- Jason Gaylord writes about [GitHub settings you might not know about](https://www.jasongaylord.com/blog/2021/09/24/github-settings-you-may-not-have-known).

### 📱 Xamarin

- Claudio Bernasconi [sets up .NET MAUI on Windows](https://www.claudiobernasconi.ch/2021/09/19/how-to-set-up-dotnet-maui-on-windows/).
- Leomaris Reyes [gets device information](https://askxammy.com/getting-device-information-with-xamarin-essentials/).

### 🏗 Design, testing, and best practices

- The Netflix Tech Blog [writes about A/B testing](https://netflixtechblog.com/what-is-an-a-b-test-b08cc1b57962).
- Daniel Wertheim [writes about value objects that are always valid](https://danielwertheim.se/csharp-always-valid-value-objects/).
- Tariq Siddiqui [writes about securing web APIs](https://www.developer.com/web-services/securing-web-apis/).
- Bilgin Ibryam [compares distributed transaction patterns for microservices](https://developers.redhat.com/articles/2021/09/21/distributed-transaction-patterns-microservices-compared).
- Peter Vogel starts writing about [unit testing legacy code](https://www.telerik.com/blogs/unit-testing-legacy-code-part-1-creating-maintainable-applications).
- Andrea Chiarelli [compares ID tokens and access tokens](https://auth0.com/blog/id-token-access-token-what-is-the-difference/).

### 🎤 Podcasts and videos

- AzureFunBytes talks to [Christos Matskas about secretless applications](https://devblogs.microsoft.com/devops/azurefunbytes-episode-56-secretless-applications-with-christosmatskas).
- The Azure DevOps Podcast [talks to Joe Guadagno about the latest in Azure DevOps](http://azuredevopspodcast.clear-measure.com/joe-guadagno-on-the-latest-in-azure-devops-episode-159).
- The Changelog [talks about the business model of open source](https://changelog.com/podcast/460).
- The Unhandled Exception Podcast [talks to Steve Collins about DI in .NET](https://unhandledexceptionpodcast.com/posts/0024-stevecollins/).
- Adventures in .NET [talk about advocating for yourself](https://devchat.tv/adventures-in-dotnet/advocate-for-yourself-net-087/).
- .NET Rocks [talks to Zaid Ajaj about F# and JS](https://www.dotnetrocks.com/default.aspx?ShowNum=1758).
- Merge Conflict [recaps .NET 6 RC1, .NET MAUI updates, and more](https://www.mergeconflict.fm/272).
- The .NET Core Podcast talks to Davide Bedine [about Dapr and .NET microservices](https://dotnetcore.show/episode-83-dapr-and-dotnet-with-davide-bedine/).
- Jeff Fritz [walks through collections and generics in C#](https://www.youtube.com/watch?v=CDfI0BldN-A).
- The ASP.NET Monsters [process CSV files in C#](https://www.youtube.com/watch?v=K3TnEOA6-7s).
- The On .NET Show [talks about Reaqtor](https://www.youtube.com/watch?v=7Onm8vo8bdg).