# net core

Published articles for net core.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Invariant culture string interpolation with \[InterpolatedStringHandler\]

DevFeed: [Invariant culture string interpolation with \[InterpolatedStringHandler\]](<https://devfeed.tech/articles/invariant-culture-string-interpolation-with-interpolatedstringhandler-151821.md>)

Original publisher: [Read original article](<https://andrewlock.net/invariant-culture-string-interpolation-with-interpolatedstringhandler/>)

Author: Andrew Lock

Published: 2026-11-24T10:00:00Z

Content type: article

Language: en

Sources: [Andrew Lock | .NET Escapades](<https://devfeed.tech/sources/andrew-lock-net-escapades.md>)

Topics: [formatting](<https://devfeed.tech/topics/formatting.md>)

Tags: [culture](<https://devfeed.tech/tags/culture.md>), [custom](<https://devfeed.tech/tags/custom.md>), [invariant](<https://devfeed.tech/tags/invariant.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [net-core-observability](<https://devfeed.tech/tags/net-core-observability.md>), [observability](<https://devfeed.tech/tags/observability.md>), [string](<https://devfeed.tech/tags/string.md>)

### AI overview

Interpolated strings use the current culture by default, so numeric output can vary by machine or locale. For .NET 6+, `string.Create(CultureInfo.InvariantCulture, $"...")` formats with invariant culture efficiently. Older targets can use `FormattableString.Invariant`, but it creates an argument array and may box value types. The article proposes a consistent `StringUtil.Invariant($"...")` helper backed by a custom `[InterpolatedStringHandler]`: on .NET 6+ it delegates to `DefaultInterpolatedStringHandler` with invariant culture; on older frameworks it uses a `StringBuilder` cache and invariant formatting overloads. The author reports benchmark gains in speed and allocation for a simple .NET Framework example, while noting the legacy handler has less direct formatting and may need more overloads. Globalization Invariant Mode is another option for applications, but changes culture behavior app-wide and cannot be relied on by libraries.

### Source excerpt

In this post I show how you can use a custom [InterpolatedStringHandler] to ensure string interpolation formats values using the invariant culture

## Understanding Lazy thread safety modes

DevFeed: [Understanding Lazy thread safety modes](<https://devfeed.tech/articles/understanding-lazy-thread-safety-modes-116292.md>)

Original publisher: [Read original article](<https://andrewlock.net/understanding-lazy-thread-safety-modes/>)

Author: Andrew Lock

Published: 2026-11-03T10:00:00Z

Content type: article

Language: en

Sources: [Andrew Lock | .NET Escapades](<https://devfeed.tech/sources/andrew-lock-net-escapades.md>)

Topics: [thread safe data sharing](<https://devfeed.tech/topics/thread-safe-data-sharing.md>), [Exception](<https://devfeed.tech/topics/exception.md>), [locking](<https://devfeed.tech/topics/locking.md>)

Tags: [caching](<https://devfeed.tech/tags/caching.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [concurrent](<https://devfeed.tech/tags/concurrent.md>), [exceptions](<https://devfeed.tech/tags/exceptions.md>), [lazy](<https://devfeed.tech/tags/lazy.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [thread](<https://devfeed.tech/tags/thread.md>), [thread-safety](<https://devfeed.tech/tags/thread-safety.md>)

### AI overview

`Lazy<T>` defers factory execution until `Value` is accessed. `None` is for single-threaded use and caches factory exceptions; concurrent access is unsafe. `PublicationOnly` lets concurrent callers run the factory independently, publishes the first successful result for everyone, and does not cache exceptions--each factory call that throws still reports its own exception. `ExecutionAndPublication` runs the factory once while other callers wait, and caches any exception, so later accesses keep throwing it. The article says `ExecutionAndPublication` avoids duplicate work and allocations, while `PublicationOnly` may be faster when initialization is cheap, safe to repeat, and lock contention is significant. `LazyInitializer.EnsureInitialized` offers similar publication behaviors without a `Lazy<T>` allocation and does not cache exceptions. A proposed `cacheExceptions` option was approved but was not yet implemented in the described account.

### Source excerpt

In this post I look at how the different `LazyThreadSafetyMode` values work with `Lazy`, and how exceptions are handled for each mode

## Microsoft Previews dotnetup: Toolchain Manager for .NET SDKs and Runtimes

DevFeed: [Microsoft Previews dotnetup: Toolchain Manager for .NET SDKs and Runtimes](<https://devfeed.tech/articles/microsoft-previews-dotnetup-toolchain-manager-for-net-sdks-and-runtimes-92534.md>)

Original publisher: [Read original article](<https://www.infoq.com/news/2026/10/dotnetup-preview/>)

Author: Almir Vuk

Published: 2026-10-21T08:15:00Z

Content type: news

Language: en

Sources: [InfoQ](<https://devfeed.tech/sources/infoq.md>)

Topics: [.NET](<https://devfeed.tech/topics/net.md>), [Microsoft](<https://devfeed.tech/topics/microsoft.md>)

Tags: [agent-skills](<https://devfeed.tech/tags/agent-skills.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-assistants](<https://devfeed.tech/tags/ai-assistants.md>), [azure-devops](<https://devfeed.tech/tags/azure-devops.md>), [cross-platform](<https://devfeed.tech/tags/cross-platform.md>), [daily](<https://devfeed.tech/tags/daily.md>), [development](<https://devfeed.tech/tags/development.md>), [dotnetup](<https://devfeed.tech/tags/dotnetup.md>), [dotnetup-preview](<https://devfeed.tech/tags/dotnetup-preview.md>), [latest](<https://devfeed.tech/tags/latest.md>), [lts](<https://devfeed.tech/tags/lts.md>), [manager](<https://devfeed.tech/tags/manager.md>), [microsoft](<https://devfeed.tech/tags/microsoft.md>), [net](<https://devfeed.tech/tags/net.md>), [net-10](<https://devfeed.tech/tags/net-10.md>), [net-11](<https://devfeed.tech/tags/net-11.md>), [net-9](<https://devfeed.tech/tags/net-9.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [net-sdk](<https://devfeed.tech/tags/net-sdk.md>), [news](<https://devfeed.tech/tags/news.md>), [preview](<https://devfeed.tech/tags/preview.md>), [public](<https://devfeed.tech/tags/public.md>), [runtimes](<https://devfeed.tech/tags/runtimes.md>), [sdks](<https://devfeed.tech/tags/sdks.md>), [toolchain](<https://devfeed.tech/tags/toolchain.md>), [updates](<https://devfeed.tech/tags/updates.md>), [user](<https://devfeed.tech/tags/user.md>)

### AI overview

dotnetup is in public preview as a cross-platform manager for .NET SDKs and runtimes, installing them in a user directory without administrator rights in its default setup. It tracks channels such as latest, lts, preview, and daily, resolves them to releases during updates, keeps exact versions pinned, and reads the nearest global.json to support deterministic team builds. It can install supported runtimes individually and removes components no longer required. Access modes range from running .NET through dotnetup to editing shell configuration; Windows-only everywhere mode changes system PATH and requires elevation, and may take precedence over Visual Studio's machine-wide SDKs. Microsoft says commands may change during preview and recommends installers, package managers, or Visual Studio for production machines. Users also raised concerns about the curl-to-shell bootstrap, lack of package-manager options, Visual Studio visibility, and management of other CLI tools; packages are planned after user validation.

### Source excerpt

Microsoft has released a public preview of dotnetup, a cross-platform toolchain manager that installs and updates .NET SDKs and runtimes in the user's own directory without admin rights. It tracks channels such as latest, lts, preview, and daily, reads global.json, and removes unused installs. Commands may still change before general availability. By Almir Vuk

## An introduction to Compact Binary Object Representation (CBOR) in .NET

DevFeed: [An introduction to Compact Binary Object Representation (CBOR) in .NET](<https://devfeed.tech/articles/an-introduction-to-compact-binary-object-representation-cbor-in-net-90927.md>)

Original publisher: [Read original article](<https://andrewlock.net/an-introduction-to-compact-binary-object-notation-in-dotnet/>)

Author: Andrew Lock

Published: 2026-10-20T10:00:00Z

Content type: article

Language: en

Sources: [Andrew Lock | .NET Escapades](<https://devfeed.tech/sources/andrew-lock-net-escapades.md>)

Topics: [Data serialization](<https://devfeed.tech/topics/data-serialization.md>), [.NET](<https://devfeed.tech/topics/net.md>), [Decoding](<https://devfeed.tech/topics/decoding.md>), [JSON](<https://devfeed.tech/topics/json.md>), [Encoding](<https://devfeed.tech/topics/encoding.md>), [hex value](<https://devfeed.tech/topics/hex-value.md>), [NuGet](<https://devfeed.tech/topics/nuget.md>), [system.text.json](<https://devfeed.tech/topics/system-text-json.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [apis](<https://devfeed.tech/tags/apis.md>), [asp-net-core](<https://devfeed.tech/tags/asp-net-core.md>), [base64](<https://devfeed.tech/tags/base64.md>), [data-protection](<https://devfeed.tech/tags/data-protection.md>), [data-serialization](<https://devfeed.tech/tags/data-serialization.md>), [introduction](<https://devfeed.tech/tags/introduction.md>), [json](<https://devfeed.tech/tags/json.md>), [net](<https://devfeed.tech/tags/net.md>), [net-10](<https://devfeed.tech/tags/net-10.md>), [net-11](<https://devfeed.tech/tags/net-11.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [net-framework](<https://devfeed.tech/tags/net-framework.md>), [nuget](<https://devfeed.tech/tags/nuget.md>), [nuget-package](<https://devfeed.tech/tags/nuget-package.md>)

### AI overview

CBOR offers a self-describing binary alternative to JSON, with native binary data, compact encodings for values such as small numbers, and support for indefinite-length collections that can help with streaming. Text payload sizes are roughly comparable to JSON, and actual savings depend on the data. The excerpt contrasts CBOR with Protobuf, which can be highly efficient but requires shared schemas, and MessagePack, which is similar but lacks CBOR's formal IETF standardization and streaming support as described here. In .NET, System.Formats.Cbor provides low-level CborWriter and CborReader APIs: callers write and read primitive values and manage structure themselves rather than automatically mapping objects. The examples cover encoding and decoding maps and arrays, selecting conformance modes such as canonical key ordering, and skipping unknown values for forward compatibility. The author suggests JSON remains suitable for most APIs and points to ASP.NET Core's use of CBOR for compact, application-specific cookie data.

### Source excerpt

In this post I introduce CBOR as a JSON alternative, and show how to use the System.Formats.Cbor NuGet package to read and write CBOR encoded data

## Stripping extra dependencies in .NET NativeAOT apps using linker substitutions

DevFeed: [Stripping extra dependencies in .NET NativeAOT apps using linker substitutions](<https://devfeed.tech/articles/stripping-extra-dependencies-in-net-nativeaot-apps-using-linker-substitutions-65543.md>)

Original publisher: [Read original article](<https://andrewlock.net/stripping-extra-dependencies-in-.net-nativeaot-apps-using-linker-substitutions/>)

Author: Andrew Lock

Published: 2026-10-06T10:00:00Z

Content type: tutorial

Language: en

Sources: [Andrew Lock | .NET Escapades](<https://devfeed.tech/sources/andrew-lock-net-escapades.md>)

Topics: [native aot](<https://devfeed.tech/topics/native-aot.md>), [trimming](<https://devfeed.tech/topics/trimming.md>), [toolchain](<https://devfeed.tech/topics/toolchain.md>), [.NET](<https://devfeed.tech/topics/net.md>), [linker](<https://devfeed.tech/topics/linker.md>)

Tags: [assembly](<https://devfeed.tech/tags/assembly.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [azure](<https://devfeed.tech/tags/azure.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [core](<https://devfeed.tech/tags/core.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [dotnet](<https://devfeed.tech/tags/dotnet.md>), [guide](<https://devfeed.tech/tags/guide.md>), [linker](<https://devfeed.tech/tags/linker.md>), [nativeaot](<https://devfeed.tech/tags/nativeaot.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [net-core-observability](<https://devfeed.tech/tags/net-core-observability.md>), [net-sdk](<https://devfeed.tech/tags/net-sdk.md>), [observability](<https://devfeed.tech/tags/observability.md>)

### AI overview

The article explains how linker substitutions in a .NET NativeAOT application can replace a runtime property check with a compile-time constant, allowing additional dead-code elimination and removal of unused dependencies. In the described case, the change reduced the binary size by 22-25%.

### Source excerpt

In this post I describe how to perform method-substitutions with the NativeAOT linker to remove additional dependencies that the linker couldn't see were unused

## Aspire 13.6 Adds Persistent Dashboard Telemetry and First-Party Java and Rust Hosting

DevFeed: [Aspire 13.6 Adds Persistent Dashboard Telemetry and First-Party Java and Rust Hosting](<https://devfeed.tech/articles/aspire-13-6-adds-persistent-dashboard-telemetry-and-first-party-java-and-rust-hosting-64804.md>)

Original publisher: [Read original article](<https://www.infoq.com/news/2026/10/dotnet-aspire-13-6-release/>)

Author: Almir Vuk

Published: 2026-10-05T09:39:00Z

Content type: news

Language: en

Sources: [InfoQ](<https://devfeed.tech/sources/infoq.md>)

Topics: [Aspire](<https://devfeed.tech/topics/aspire.md>)

Tags: [aspire](<https://devfeed.tech/tags/aspire.md>), [azure-container-apps](<https://devfeed.tech/tags/azure-container-apps.md>), [blazor](<https://devfeed.tech/tags/blazor.md>), [cloud-native-architecture](<https://devfeed.tech/tags/cloud-native-architecture.md>), [credentials](<https://devfeed.tech/tags/credentials.md>), [dashboard](<https://devfeed.tech/tags/dashboard.md>), [data](<https://devfeed.tech/tags/data.md>), [database](<https://devfeed.tech/tags/database.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [development](<https://devfeed.tech/tags/development.md>), [dotnet-aspire-13-6-release](<https://devfeed.tech/tags/dotnet-aspire-13-6-release.md>), [encryption](<https://devfeed.tech/tags/encryption.md>), [environment](<https://devfeed.tech/tags/environment.md>), [environments](<https://devfeed.tech/tags/environments.md>), [image](<https://devfeed.tech/tags/image.md>), [local](<https://devfeed.tech/tags/local.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [net](<https://devfeed.tech/tags/net.md>), [net-10](<https://devfeed.tech/tags/net-10.md>), [net-11](<https://devfeed.tech/tags/net-11.md>), [net-aspire](<https://devfeed.tech/tags/net-aspire.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [news](<https://devfeed.tech/tags/news.md>), [release](<https://devfeed.tech/tags/release.md>), [resources](<https://devfeed.tech/tags/resources.md>), [sqlite](<https://devfeed.tech/tags/sqlite.md>), [telemetry](<https://devfeed.tech/tags/telemetry.md>)

### AI overview

Microsoft's Aspire 13.6 release adds persistent dashboard telemetry and run history, prerelease hosting integrations for Java and Rust, portable volume paths, and new CLI and editor workflows. The release also includes breaking changes such as automatic TLS for local MongoDB resources and a new default Cosmos DB emulator image.

### Source excerpt

Microsoft has released Aspire 13.6. The dashboard now stores telemetry in SQLite and keeps up to ten completed runs per application. The release adds prerelease hosting packages for Java and Rust, portable volume paths, and new CLI options. Breaking changes include automatic TLS for local MongoDB resources and a new default Cosmos DB emulator image. By Almir Vuk

## Microsoft Releases .NET 11 RC1 with Go-Live Support, C# 15 and F# 11 as Default Language Versions

DevFeed: [Microsoft Releases .NET 11 RC1 with Go-Live Support, C# 15 and F# 11 as Default Language Versions](<https://devfeed.tech/articles/microsoft-releases-net-11-rc1-with-go-live-support-c-15-and-f-11-as-default-language-versions-26600.md>)

Original publisher: [Read original article](<https://www.infoq.com/news/2026/09/dotnet-11-rc-1-release/>)

Author: Almir Vuk

Published: 2026-09-15T07:11:00Z

Content type: news

Language: en

Sources: [InfoQ](<https://devfeed.tech/sources/infoq.md>)

Topics: [.NET](<https://devfeed.tech/topics/net.md>), [C#](<https://devfeed.tech/topics/csharp.md>), [Microsoft](<https://devfeed.tech/topics/microsoft.md>), [releases](<https://devfeed.tech/topics/releases.md>), [ASP.NET Core](<https://devfeed.tech/topics/asp-net-core.md>), [F#](<https://devfeed.tech/topics/fsharp.md>), [SignalR](<https://devfeed.tech/topics/signalr.md>), [SDK](<https://devfeed.tech/topics/sdk.md>), [.NET MAUI](<https://devfeed.tech/topics/net-maui.md>), [native aot](<https://devfeed.tech/topics/native-aot.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [api](<https://devfeed.tech/tags/api.md>), [asp-net-core](<https://devfeed.tech/tags/asp-net-core.md>), [c-sharp-15](<https://devfeed.tech/tags/c-sharp-15.md>), [development](<https://devfeed.tech/tags/development.md>), [dotnet-11-rc-1-release](<https://devfeed.tech/tags/dotnet-11-rc-1-release.md>), [f-sharp](<https://devfeed.tech/tags/f-sharp.md>), [ios](<https://devfeed.tech/tags/ios.md>), [macos](<https://devfeed.tech/tags/macos.md>), [microsoft](<https://devfeed.tech/tags/microsoft.md>), [native-aot](<https://devfeed.tech/tags/native-aot.md>), [net](<https://devfeed.tech/tags/net.md>), [net-10](<https://devfeed.tech/tags/net-10.md>), [net-11](<https://devfeed.tech/tags/net-11.md>), [net-9](<https://devfeed.tech/tags/net-9.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [net-maui](<https://devfeed.tech/tags/net-maui.md>), [news](<https://devfeed.tech/tags/news.md>), [releases](<https://devfeed.tech/tags/releases.md>), [sdk](<https://devfeed.tech/tags/sdk.md>), [signalr](<https://devfeed.tech/tags/signalr.md>)

### AI overview

Microsoft released .NET 11 Release Candidate 1 with go-live support for production use. It makes C# 15 and F# 11 the default language versions and stabilizes features from the preview cycle. The release also extends testing across mobile and desktop targets, updates SignalR authentication refresh APIs, and adds SDK, ASP.NET Core, Blazor, and Native AOT-related improvements.

### Source excerpt

Last week, Microsoft has released .NET 11 Release Candidate 1, the first release candidate of the cycle, shipping with a go-live support license for production use. The release makes C# 15 and F# 11 the default language versions, extends dotnet test to mobile and desktop targets, finalizes the SignalR authentication refresh APIs, and improves Android build times in .NET MAUI. By Almir Vuk

## Finding the total number of processors on a machine with .NET

DevFeed: [Finding the total number of processors on a machine with .NET](<https://devfeed.tech/articles/finding-the-total-number-of-processors-on-a-machine-with-net-51480.md>)

Original publisher: [Read original article](<https://andrewlock.net/finding-the-total-number-of-processors-on-a-machine-with-dotnet/>)

Author: Andrew Lock

Published: 2026-08-25T10:00:00Z

Content type: tutorial

Language: en

Sources: [Andrew Lock | .NET Escapades](<https://devfeed.tech/sources/andrew-lock-net-escapades.md>)

Topics: [.NET](<https://devfeed.tech/topics/net.md>), [cpu](<https://devfeed.tech/topics/cpu.md>), [.NET Framework](<https://devfeed.tech/topics/net-framework.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [linux](<https://devfeed.tech/tags/linux.md>), [macos](<https://devfeed.tech/tags/macos.md>), [net](<https://devfeed.tech/tags/net.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [net-core-observability](<https://devfeed.tech/tags/net-core-observability.md>), [net-framework](<https://devfeed.tech/tags/net-framework.md>), [observability](<https://devfeed.tech/tags/observability.md>)

### AI overview

This post explains how to retrieve the total number of logical processors on a host machine in .NET, rather than only the processors available to the current process. It compares behavior across .NET Framework and modern .NET, then describes using native APIs on Windows and macOS and parsing files on Linux.

### Source excerpt

In this post I show how to find the total number of logical CPUs on a host (not just those available to a process); something that isn't exposed in modern .NET

## Configuring contextual options with Microsoft.Extensions.Options.Contextual

DevFeed: [Configuring contextual options with Microsoft.Extensions.Options.Contextual](<https://devfeed.tech/articles/configuring-contextual-options-with-microsoft-extensions-options-contextual-51468.md>)

Original publisher: [Read original article](<https://andrewlock.net/configuring-contextual-options-with-microsoft-extensions-options-contextual/>)

Author: Andrew Lock

Published: 2026-04-01T10:00:00Z

Content type: tutorial

Language: en

Sources: [Andrew Lock | .NET Escapades](<https://devfeed.tech/sources/andrew-lock-net-escapades.md>)

Topics: [.NET](<https://devfeed.tech/topics/net.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [context](<https://devfeed.tech/topics/context.md>), [Library](<https://devfeed.tech/topics/library.md>), [Microsoft](<https://devfeed.tech/topics/microsoft.md>)

Tags: [configuration](<https://devfeed.tech/tags/configuration.md>), [configuration-net-core](<https://devfeed.tech/tags/configuration-net-core.md>), [context](<https://devfeed.tech/tags/context.md>), [di](<https://devfeed.tech/tags/di.md>), [library](<https://devfeed.tech/tags/library.md>), [microsoft](<https://devfeed.tech/tags/microsoft.md>), [net](<https://devfeed.tech/tags/net.md>), [net-core](<https://devfeed.tech/tags/net-core.md>)

### AI overview

This post examines Microsoft.Extensions.Options.Contextual, a .NET library for dynamically configuring options based on a supplied context. It explains the package's purpose, installation and configuration, and contrasts contextual options with global and named options using a weather forecast example.

### Source excerpt

In this post I take a brief look at the Microsoft.Extensions.Options.Contextual package to understand what it's for, how to use it, and whether to use it or not

## Splitting the NetEscapades.EnumGenerators packages: the road to a stable release

DevFeed: [Splitting the NetEscapades.EnumGenerators packages: the road to a stable release](<https://devfeed.tech/articles/splitting-the-netescapades-enumgenerators-packages-the-road-to-a-stable-release-51487.md>)

Original publisher: [Read original article](<https://andrewlock.net/splitting-the-netescapades-enumgenerators-packages-the-road-to-a-stable-release/>)

Author: Andrew Lock

Published: 2026-03-10T09:00:00Z

Content type: article

Language: en

Sources: [Andrew Lock | .NET Escapades](<https://devfeed.tech/sources/andrew-lock-net-escapades.md>)

Topics: [source generators](<https://devfeed.tech/topics/source-generators.md>), [.NET](<https://devfeed.tech/topics/net.md>), [enum](<https://devfeed.tech/topics/enum.md>), [.NET Framework](<https://devfeed.tech/topics/net-framework.md>)

Tags: [changes](<https://devfeed.tech/tags/changes.md>), [net](<https://devfeed.tech/tags/net.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [net-core-roslyn-source-generators](<https://devfeed.tech/tags/net-core-roslyn-source-generators.md>), [packages](<https://devfeed.tech/tags/packages.md>), [performance](<https://devfeed.tech/tags/performance.md>), [release](<https://devfeed.tech/tags/release.md>), [roslyn](<https://devfeed.tech/tags/roslyn.md>), [source-generators](<https://devfeed.tech/tags/source-generators.md>)

### AI overview

This post explains the restructuring of the NetEscapades.EnumGenerators source generator NuGet package into three packages ahead of a stable release. It also describes how the generator creates fast enum-handling implementations and compares their performance with built-in approaches across .NET versions.

### Source excerpt

In this post I describe the recent architectural changes to the NetEscapades.EnumGenerators package, which is now a metapackage, to support more scenarios

## Recording metrics in-process using MeterListener: System.Diagnostics.Metrics APIs - Part 4

DevFeed: [Recording metrics in-process using MeterListener: System.Diagnostics.Metrics APIs - Part 4](<https://devfeed.tech/articles/recording-metrics-in-process-using-meterlistener-system-diagnostics-metrics-apis-part-4-51483.md>)

Original publisher: [Read original article](<https://andrewlock.net/recording-metrics-in-process-using-meterlistener/>)

Author: Andrew Lock

Published: 2026-02-24T10:00:00Z

Content type: tutorial

Language: en

Sources: [Andrew Lock | .NET Escapades](<https://devfeed.tech/sources/andrew-lock-net-escapades.md>)

Topics: [telemetry](<https://devfeed.tech/topics/telemetry.md>), [ASP.NET Core](<https://devfeed.tech/topics/asp-net-core.md>), [ASP.NET](<https://devfeed.tech/topics/aspnet.md>), [Minimal API](<https://devfeed.tech/topics/minimal-api.md>), [OpenTelemetry](<https://devfeed.tech/topics/opentelemetry.md>)

Tags: [aggregate](<https://devfeed.tech/tags/aggregate.md>), [asp-net-core](<https://devfeed.tech/tags/asp-net-core.md>), [diagnostics](<https://devfeed.tech/tags/diagnostics.md>), [http](<https://devfeed.tech/tags/http.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [minimal-api](<https://devfeed.tech/tags/minimal-api.md>), [net](<https://devfeed.tech/tags/net.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [observability](<https://devfeed.tech/tags/observability.md>), [observability-net-core](<https://devfeed.tech/tags/observability-net-core.md>), [opentelemetry](<https://devfeed.tech/tags/opentelemetry.md>), [parallel](<https://devfeed.tech/tags/parallel.md>), [recording](<https://devfeed.tech/tags/recording.md>)

### AI overview

A tutorial on using MeterListener to consume and aggregate in-process measurements from the System.Diagnostics.Metrics APIs. It demonstrates a minimal ASP.NET Core app that generates load, listens for measurements, and displays live-updating results.

### Source excerpt

In this post I show how you can use MeterListener to listen to Instrument measurements, how to trigger Observable measurements, and how to aggregate values.

## Creating standard and "observable" instruments: System.Diagnostics.Metrics APIs - Part 3

DevFeed: [Creating standard and "observable" instruments: System.Diagnostics.Metrics APIs - Part 3](<https://devfeed.tech/articles/creating-standard-and-observable-instruments-system-diagnostics-metrics-apis-part-3-51471.md>)

Original publisher: [Read original article](<https://andrewlock.net/creating-standard-and-observable-instruments/>)

Author: Andrew Lock

Published: 2026-02-17T10:00:00Z

Content type: article

Language: en

Sources: [Andrew Lock | .NET Escapades](<https://devfeed.tech/sources/andrew-lock-net-escapades.md>)

Topics: [.NET](<https://devfeed.tech/topics/net.md>), [telemetry](<https://devfeed.tech/topics/telemetry.md>), [ASP.NET Core](<https://devfeed.tech/topics/asp-net-core.md>), [OpenTelemetry](<https://devfeed.tech/topics/opentelemetry.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [asp-net-core](<https://devfeed.tech/tags/asp-net-core.md>), [examples](<https://devfeed.tech/tags/examples.md>), [gc](<https://devfeed.tech/tags/gc.md>), [heap](<https://devfeed.tech/tags/heap.md>), [http](<https://devfeed.tech/tags/http.md>), [libraries](<https://devfeed.tech/tags/libraries.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [net](<https://devfeed.tech/tags/net.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [nuget](<https://devfeed.tech/tags/nuget.md>), [observability](<https://devfeed.tech/tags/observability.md>), [observability-net-core](<https://devfeed.tech/tags/observability-net-core.md>), [observable](<https://devfeed.tech/tags/observable.md>), [opentelemetry](<https://devfeed.tech/tags/opentelemetry.md>), [process](<https://devfeed.tech/tags/process.md>)

### AI overview

This post explains the instrument types in the .NET System.Diagnostics.Metrics API, focusing on the difference between standard instruments that emit values as events occur and observable instruments whose values are requested by a metrics consumer. It includes examples from .NET libraries and ASP.NET Core.

### Source excerpt

In this post I discuss the various Instrument types exposed by the System.Diagnostics.Metrics API and show examples from the .NET libraries and ASP.NET Core

## Using Microsoft.Extensions.Telemetry.Abstractions Source Generators for Strongly Typed .NET Metrics

DevFeed: [Using Microsoft.Extensions.Telemetry.Abstractions Source Generators for Strongly Typed .NET Metrics](<https://devfeed.tech/articles/exploring-the-underwhelming-system-diagnostics-metrics-source-generators-system-diagnostics-metrics-apis-part-2-51472.md>)

Original publisher: [Read original article](<https://andrewlock.net/creating-strongly-typed-metics-with-a-source-generator/>)

Author: Andrew Lock

Published: 2026-02-03T10:00:00Z

Content type: tutorial

Language: en

Sources: [Andrew Lock | .NET Escapades](<https://devfeed.tech/sources/andrew-lock-net-escapades.md>)

Topics: [source generators](<https://devfeed.tech/topics/source-generators.md>), [telemetry](<https://devfeed.tech/topics/telemetry.md>), [.NET](<https://devfeed.tech/topics/net.md>), [Code](<https://devfeed.tech/topics/code.md>), [Microsoft](<https://devfeed.tech/topics/microsoft.md>)

Tags: [boilerplate](<https://devfeed.tech/tags/boilerplate.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [net](<https://devfeed.tech/tags/net.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [observability](<https://devfeed.tech/tags/observability.md>), [observability-net-core](<https://devfeed.tech/tags/observability-net-core.md>), [source-generators](<https://devfeed.tech/tags/source-generators.md>), [telemetry](<https://devfeed.tech/tags/telemetry.md>)

### AI overview

This tutorial explores the source generators in Microsoft.Extensions.Telemetry.Abstractions for creating .NET metrics. It compares the generated approach with manual boilerplate, examines the generated code, and shows how strongly typed tag objects add type safety.

### Source excerpt

In this post I explore the source generators shipped in Microsoft.Extensions.Telemetry.Abstractions, explore the code, and discuss whether I would use them

## Creating and consuming metrics with System.Diagnostics.Metrics APIs: System.Diagnostics.Metrics APIs - Part 1

DevFeed: [Creating and consuming metrics with System.Diagnostics.Metrics APIs: System.Diagnostics.Metrics APIs - Part 1](<https://devfeed.tech/articles/creating-and-consuming-metrics-with-system-diagnostics-metrics-apis-system-diagnostics-metrics-apis-part-1-51470.md>)

Original publisher: [Read original article](<https://andrewlock.net/creating-and-consuming-metrics-with-system-diagnostics-metrics-apis/>)

Author: Andrew Lock

Published: 2026-01-27T10:00:00Z

Content type: tutorial

Language: en

Sources: [Andrew Lock | .NET Escapades](<https://devfeed.tech/sources/andrew-lock-net-escapades.md>)

Topics: [API](<https://devfeed.tech/topics/api.md>), [Monitoring](<https://devfeed.tech/topics/monitoring.md>), [.NET](<https://devfeed.tech/topics/net.md>), [OpenTelemetry](<https://devfeed.tech/topics/opentelemetry.md>), [telemetry](<https://devfeed.tech/topics/telemetry.md>)

Tags: [asp-net-core](<https://devfeed.tech/tags/asp-net-core.md>), [datadog](<https://devfeed.tech/tags/datadog.md>), [diagnostics](<https://devfeed.tech/tags/diagnostics.md>), [dotnet](<https://devfeed.tech/tags/dotnet.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [net](<https://devfeed.tech/tags/net.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [observability](<https://devfeed.tech/tags/observability.md>), [observability-net-core-datadog](<https://devfeed.tech/tags/observability-net-core-datadog.md>), [opentelemetry](<https://devfeed.tech/tags/opentelemetry.md>)

### AI overview

An introduction to the System.Diagnostics.Metrics API in .NET, covering local metric monitoring, custom metrics, metric types, and interoperability with OpenTelemetry and dotnet-counters.

### Source excerpt

In this post I provide an introduction to the System.Diagnostics.Metrics API, and show how to create a custom metric and read it with dotnet-counters

## Making foreach on an IEnumerable allocation-free using reflection and dynamic methods

DevFeed: [Making foreach on an IEnumerable allocation-free using reflection and dynamic methods](<https://devfeed.tech/articles/making-foreach-on-an-ienumerable-allocation-free-using-reflection-and-dynamic-methods-51481.md>)

Original publisher: [Read original article](<https://andrewlock.net/making-foreach-on-an-ienumerable-allocation-free-using-reflection-and-dynamic-methods/>)

Author: Andrew Lock

Published: 2026-01-20T10:00:00Z

Content type: tutorial

Language: en

Sources: [Andrew Lock | .NET Escapades](<https://devfeed.tech/sources/andrew-lock-net-escapades.md>)

Topics: [C#](<https://devfeed.tech/topics/csharp.md>), [.NET](<https://devfeed.tech/topics/net.md>), [Benchmark](<https://devfeed.tech/topics/benchmark.md>), [pattern matching](<https://devfeed.tech/topics/pattern-matching.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>)

Tags: [benchmark](<https://devfeed.tech/tags/benchmark.md>), [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [datadog](<https://devfeed.tech/tags/datadog.md>), [net](<https://devfeed.tech/tags/net.md>), [net-9](<https://devfeed.tech/tags/net-9.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [pattern-matching](<https://devfeed.tech/tags/pattern-matching.md>), [performance](<https://devfeed.tech/tags/performance.md>), [performance-net-core-datadog](<https://devfeed.tech/tags/performance-net-core-datadog.md>)

### AI overview

This post explains why foreach over an IEnumerable can allocate in C#, then demonstrates how reflection and DynamicMethod can eliminate that allocation. It examines compiler lowering, pattern-based enumeration, and benchmark results across .NET Framework and .NET 9.

### Source excerpt

In this post I describe why foreach sometimes allocates, and show how you can use DynamicMethod and Reflection.Emit to go allocation-free

## Recent updates to NetEscapades.EnumGenerators: new APIs and System.Memory support

DevFeed: [Recent updates to NetEscapades.EnumGenerators: new APIs and System.Memory support](<https://devfeed.tech/articles/recent-updates-to-netescapades-enumgenerators-new-apis-and-system-memory-support-51491.md>)

Original publisher: [Read original article](<https://andrewlock.net/updates-to-netescapaades-enumgenerators-new-apis-and-system-memory-support/>)

Author: Andrew Lock

Published: 2026-01-02T09:00:00Z

Content type: release

Language: en

Sources: [Andrew Lock | .NET Escapades](<https://devfeed.tech/sources/andrew-lock-net-escapades.md>)

Topics: [enum](<https://devfeed.tech/topics/enum.md>), [NuGet](<https://devfeed.tech/topics/nuget.md>), [implementation](<https://devfeed.tech/topics/implementation.md>), [version](<https://devfeed.tech/topics/version.md>)

Tags: [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [feature](<https://devfeed.tech/tags/feature.md>), [latest-release](<https://devfeed.tech/tags/latest-release.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [net-core-roslyn-source-generators](<https://devfeed.tech/tags/net-core-roslyn-source-generators.md>), [new-features](<https://devfeed.tech/tags/new-features.md>), [nuget](<https://devfeed.tech/tags/nuget.md>), [performance](<https://devfeed.tech/tags/performance.md>), [roslyn](<https://devfeed.tech/tags/roslyn.md>), [source-generators](<https://devfeed.tech/tags/source-generators.md>)

### AI overview

This post covers updates to the NetEscapades.EnumGenerators source generator in version 1.0.0-beta19, including System.Memory support, new APIs, and options for enum parsing and serialization. It also explains how generated implementations can improve enum operation performance.

### Source excerpt

In this post I describe some recent changes to the NetEscapades.EnumGenerators source generator, including support for the System.Memory package and new APIs

## Creating a .NET CLR profiler using C# and NativeAOT with Silhouette

DevFeed: [Creating a .NET CLR profiler using C# and NativeAOT with Silhouette](<https://devfeed.tech/articles/creating-a-net-clr-profiler-using-c-and-nativeaot-with-silhouette-51469.md>)

Original publisher: [Read original article](<https://andrewlock.net/creating-a-dotnet-profiler-using-csharp-with-silhouette/>)

Author: Andrew Lock

Published: 2025-12-16T10:00:00Z

Content type: tutorial

Language: en

Sources: [Andrew Lock | .NET Escapades](<https://devfeed.tech/sources/andrew-lock-net-escapades.md>)

Topics: [.NET](<https://devfeed.tech/topics/net.md>), [C#](<https://devfeed.tech/topics/csharp.md>), [native aot](<https://devfeed.tech/topics/native-aot.md>), [Library](<https://devfeed.tech/topics/library.md>), [Instrumentation](<https://devfeed.tech/topics/instrumentation.md>)

Tags: [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [code](<https://devfeed.tech/tags/code.md>), [instrumentation](<https://devfeed.tech/tags/instrumentation.md>), [library](<https://devfeed.tech/tags/library.md>), [native-aot](<https://devfeed.tech/tags/native-aot.md>), [nativeaot](<https://devfeed.tech/tags/nativeaot.md>), [net](<https://devfeed.tech/tags/net.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [net-core-c-sharp-performance-native-aot](<https://devfeed.tech/tags/net-core-c-sharp-performance-native-aot.md>), [performance](<https://devfeed.tech/tags/performance.md>)

### AI overview

A practical introduction to building a basic .NET CLR profiler with C# and NativeAOT using the Silhouette library. The post demonstrates logging assembly loads and briefly explains the .NET profiling and metadata APIs.

### Source excerpt

In this post I look at how to create a simple .NET profiler. But instead of using C++, the profiler uses C# and NativeAOT with the Silhouette library

## Getting Started with MongoDB Atlas and Azure Functions using .NET and C#

DevFeed: [Getting Started with MongoDB Atlas and Azure Functions using .NET and C#](<https://devfeed.tech/articles/getting-started-with-mongodb-atlas-and-azure-functions-using-net-and-c-21824.md>)

Original publisher: [Read original article](<https://www.thepolyglotdeveloper.com/blog/2023/02/getting-started-with-mongodb-atlas-and-azure-functions-using-net/>)

Author: Nic Raboy

Published: 2023-02-17T14:00:00Z

Content type: tutorial

Language: en

Sources: [Nic Raboy](<https://devfeed.tech/sources/nic-raboy.md>)

Topics: [azure functions](<https://devfeed.tech/topics/azure-functions.md>), [MongoDB](<https://devfeed.tech/topics/mongodb.md>), [C#](<https://devfeed.tech/topics/csharp.md>), [.NET](<https://devfeed.tech/topics/net.md>), [function as a service](<https://devfeed.tech/topics/function-as-a-service.md>), [Azure](<https://devfeed.tech/topics/azure.md>)

Tags: [atlas](<https://devfeed.tech/tags/atlas.md>), [azure](<https://devfeed.tech/tags/azure.md>), [azure-functions](<https://devfeed.tech/tags/azure-functions.md>), [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [cli](<https://devfeed.tech/tags/cli.md>), [csharp](<https://devfeed.tech/tags/csharp.md>), [database](<https://devfeed.tech/tags/database.md>), [getting-started](<https://devfeed.tech/tags/getting-started.md>), [http](<https://devfeed.tech/tags/http.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [net](<https://devfeed.tech/tags/net.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [nosql](<https://devfeed.tech/tags/nosql.md>), [runtime](<https://devfeed.tech/tags/runtime.md>), [serverless](<https://devfeed.tech/tags/serverless.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

The tutorial begins a walkthrough for building a C# Azure Function on .NET that interacts with MongoDB Atlas, with local testing before publishing to Azure. It frames serverless functions as a way to reduce attention to infrastructure and operations while scaling with demand. Prerequisites are the Azure CLI configured for an account, Azure Functions Core Tools, .NET or .NET Core 6.0+, and an Atlas database with suitable user and network rules; Atlas setup itself is out of scope. The walkthrough starts by creating a local Functions project, selecting .NET in the wizard, and creating a "GetMovies" HTTP function. The excerpt ends during that step, so it does not show the implementation or deployment details.

### Source excerpt

So you need to build an application with minimal operating costs that can also scale to meet the growing demand of your business. This is a perfect scenario for a serverless function, like those built... The post Getting Started with MongoDB Atlas and Azure Functions using .NET and C# appeared first on Microsoft.

## Interact with a GraphQL API from a .NET Core Application

DevFeed: [Interact with a GraphQL API from a .NET Core Application](<https://devfeed.tech/articles/interact-with-a-graphql-api-from-a-net-core-application-21817.md>)

Original publisher: [Read original article](<https://www.thepolyglotdeveloper.com/blog/2022/08/interact-graphql-api-dotnet-core-application/>)

Author: Nic Raboy

Published: 2022-08-03T13:00:00Z

Content type: tutorial

Language: en

Sources: [Nic Raboy](<https://devfeed.tech/sources/nic-raboy.md>)

Topics: [GraphQL](<https://devfeed.tech/topics/graphql.md>), [.NET](<https://devfeed.tech/topics/net.md>), [API](<https://devfeed.tech/topics/api.md>), [C#](<https://devfeed.tech/topics/csharp.md>), [Data serialization](<https://devfeed.tech/topics/data-serialization.md>), [REST API](<https://devfeed.tech/topics/rest-api.md>), [Firestore](<https://devfeed.tech/topics/firestore.md>)

Tags: [account](<https://devfeed.tech/tags/account.md>), [api](<https://devfeed.tech/tags/api.md>), [apis](<https://devfeed.tech/tags/apis.md>), [app](<https://devfeed.tech/tags/app.md>), [application](<https://devfeed.tech/tags/application.md>), [atlas](<https://devfeed.tech/tags/atlas.md>), [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [cli](<https://devfeed.tech/tags/cli.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [cluster](<https://devfeed.tech/tags/cluster.md>), [code](<https://devfeed.tech/tags/code.md>), [command](<https://devfeed.tech/tags/command.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [core](<https://devfeed.tech/tags/core.md>), [csharp](<https://devfeed.tech/tags/csharp.md>), [dotnet](<https://devfeed.tech/tags/dotnet.md>), [graphql](<https://devfeed.tech/tags/graphql.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [net](<https://devfeed.tech/tags/net.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

The tutorial sets up a .NET Core console app to query a GraphQL API generated with MongoDB App Services. It requires .NET Core 6 or later and a MongoDB Cloud account with an M0 or better Atlas cluster; the CLI is used in the walkthrough, though Visual Studio is also an option. The excerpt says GraphQL is accessed over HTTP and a GraphQL package is optional, while a package simplifies querying; it also calls for a JSON dependency. The excerpt ends during the API deployment section, so it does not show the later query code.

### Source excerpt

When it comes to C#, it's not too difficult or time-consuming to create or consume RESTful APIs. In fact, I recently published a tutorial that demonstrated how to create a RESTful API with .NET Core u... The post Interact with a GraphQL API from a .NET Core Application appeared first on MongoDB.

## Using LINQ to Query MongoDB in a .NET Core Application

DevFeed: [Using LINQ to Query MongoDB in a .NET Core Application](<https://devfeed.tech/articles/using-linq-to-query-mongodb-in-a-net-core-application-21814.md>)

Original publisher: [Read original article](<https://www.thepolyglotdeveloper.com/blog/2022/04/using-linq-query-mongodb-dotnet-core-application/>)

Author: Nic Raboy

Published: 2022-04-06T13:00:00Z

Content type: tutorial

Language: en

Sources: [Nic Raboy](<https://devfeed.tech/sources/nic-raboy.md>)

Topics: [MongoDB](<https://devfeed.tech/topics/mongodb.md>), [.NET](<https://devfeed.tech/topics/net.md>), [C#](<https://devfeed.tech/topics/csharp.md>)

Tags: [csharp](<https://devfeed.tech/tags/csharp.md>), [dotnet](<https://devfeed.tech/tags/dotnet.md>), [linq](<https://devfeed.tech/tags/linq.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [net](<https://devfeed.tech/tags/net.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [nosql](<https://devfeed.tech/tags/nosql.md>), [query](<https://devfeed.tech/tags/query.md>)

### AI overview

The tutorial presents LINQ as a familiar C# alternative to MongoDB's Find queries and aggregation pipelines, showing how it can replace both simple queries and more complex pipelines. It requires .NET Core 6 or later, a configured MongoDB Atlas cluster, and the sample datasets. The excerpt says to explicitly select MongoDB LINQ Version 3; Version 2 supports many LINQ tasks, but the author says Version 3 provides a better experience. The supplied text ends as the query examples begin, so it does not show their implementation.

### Source excerpt

If you've been keeping up with my series of tutorials around .NET Core and MongoDB, you'll likely remember that we explored using the Find operator to query for documents as well as an aggregation pip... The post Using LINQ to Query MongoDB in a .NET Core Application appeared first on MongoDB.

## Useful Tips For Getting Started With MongoDB in .NET Core

DevFeed: [Useful Tips For Getting Started With MongoDB in .NET Core](<https://devfeed.tech/articles/useful-tips-for-getting-started-with-mongodb-in-net-core-17702.md>)

Original publisher: [Read original article](<https://nexocode.com/blog/posts/getting-started-with-mongodb-in.net-core-applications/>)

Author: witali-stinski

Published: 2022-03-03T23:00:00Z

Content type: tutorial

Language: en

Sources: [Backend Development on nexocode](<https://devfeed.tech/sources/backend-development-on-nexocode.md>)

Topics: [MongoDB](<https://devfeed.tech/topics/mongodb.md>), [.NET](<https://devfeed.tech/topics/net.md>), [ASP.NET Core](<https://devfeed.tech/topics/asp-net-core.md>), [ASP.NET](<https://devfeed.tech/topics/aspnet.md>)

Tags: [asp-net-core](<https://devfeed.tech/tags/asp-net-core.md>), [class](<https://devfeed.tech/tags/class.md>), [database](<https://devfeed.tech/tags/database.md>), [driver](<https://devfeed.tech/tags/driver.md>), [format](<https://devfeed.tech/tags/format.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [nosql](<https://devfeed.tech/tags/nosql.md>), [relational-databases](<https://devfeed.tech/tags/relational-databases.md>)

### AI overview

For .NET Core applications, the author recommends using the official MongoDB .NET Driver instead of Entity Framework or another ORM, arguing that an ORM adds abstraction without benefit and limits access to MongoDB's flexible domain modeling. Create a MongoClient to manage database connections: it is lightweight, thread-safe, and maintains a connection pool, so connections need not be opened, closed, or disposed individually. The recommended practice is one MongoClient instance per application, commonly registered as an ASP.NET Core singleton. Connection details can be supplied as a URI-format connection string, which is reusable across MongoDB drivers and can hold options or be stored in secure credential storage; the excerpt also notes configuring MongoClientSettings in code as an alternative.

### Source excerpt

MongoDB database is one of the most popular NoSql solutions on the market today. Of course, it provides support for .NET Core, as well as for other popular programming languages and frameworks. In this article, I want to share my experience when I started to use Mongo as the main database with the .NET Core application. Before, I mainly used relational databases for a long time, and some NoSQL terms were confusing for me. Just like for many developers with a background in relational databases. You need to switch mindset - from relations and schema to no relations and schemaless.

## Joining Collections in MongoDB with .NET Core and an Aggregation Pipeline

DevFeed: [Joining Collections in MongoDB with .NET Core and an Aggregation Pipeline](<https://devfeed.tech/articles/joining-collections-in-mongodb-with-net-core-and-an-aggregation-pipeline-21813.md>)

Original publisher: [Read original article](<https://www.thepolyglotdeveloper.com/blog/2022/03/joining-collections-mongodb-dotnet-core-aggregation-pipeline/>)

Author: Nic Raboy

Published: 2022-03-02T14:00:00Z

Content type: tutorial

Language: en

Sources: [Nic Raboy](<https://devfeed.tech/sources/nic-raboy.md>)

Topics: [MongoDB](<https://devfeed.tech/topics/mongodb.md>), [.NET](<https://devfeed.tech/topics/net.md>), [Collections](<https://devfeed.tech/topics/collections.md>)

Tags: [aggregation](<https://devfeed.tech/tags/aggregation.md>), [api](<https://devfeed.tech/tags/api.md>), [application](<https://devfeed.tech/tags/application.md>), [atlas](<https://devfeed.tech/tags/atlas.md>), [cluster](<https://devfeed.tech/tags/cluster.md>), [collection](<https://devfeed.tech/tags/collection.md>), [collections](<https://devfeed.tech/tags/collections.md>), [console](<https://devfeed.tech/tags/console.md>), [core](<https://devfeed.tech/tags/core.md>), [crud](<https://devfeed.tech/tags/crud.md>), [csharp](<https://devfeed.tech/tags/csharp.md>), [data](<https://devfeed.tech/tags/data.md>), [database](<https://devfeed.tech/tags/database.md>), [dotnet](<https://devfeed.tech/tags/dotnet.md>), [join](<https://devfeed.tech/tags/join.md>), [model](<https://devfeed.tech/tags/model.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [movies](<https://devfeed.tech/tags/movies.md>), [net](<https://devfeed.tech/tags/net.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [network](<https://devfeed.tech/tags/network.md>), [nosql](<https://devfeed.tech/tags/nosql.md>), [pipeline](<https://devfeed.tech/tags/pipeline.md>)

### AI overview

The tutorial introduces joining data from MongoDB collections with aggregation pipelines in a .NET Core application. Its setup uses MongoDB Atlas, .NET Core 6+, the sample data sets, the `sample_mflix` database and `movies` collection, plus a custom `playlist` collection. The excerpt highlights that relevant fields and values across the collections are strings, but does not include the pipeline implementation or its results.

### Source excerpt

If you've been keeping up with my .NET Core series on MongoDB, you'll remember that we explored creating a simple console application as well as building a RESTful API with basic CRUD support. In both... The post Joining Collections in MongoDB with .NET Core and an Aggregation Pipeline appeared first on MongoDB.

## Create a RESTful API with .NET Core and MongoDB

DevFeed: [Create a RESTful API with .NET Core and MongoDB](<https://devfeed.tech/articles/create-a-restful-api-with-net-core-and-mongodb-21810.md>)

Original publisher: [Read original article](<https://www.thepolyglotdeveloper.com/blog/2022/02/create-restful-api-dotnet-core-mongodb/>)

Author: Nic Raboy

Published: 2022-02-23T14:00:00Z

Content type: tutorial

Language: en

Sources: [Nic Raboy](<https://devfeed.tech/sources/nic-raboy.md>)

Topics: [.NET](<https://devfeed.tech/topics/net.md>), [ASP.NET Core](<https://devfeed.tech/topics/asp-net-core.md>), [MongoDB](<https://devfeed.tech/topics/mongodb.md>), [API](<https://devfeed.tech/topics/api.md>), [CRUD](<https://devfeed.tech/topics/crud.md>), [Web app](<https://devfeed.tech/topics/webapp.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [atlas](<https://devfeed.tech/tags/atlas.md>), [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [cli](<https://devfeed.tech/tags/cli.md>), [collection](<https://devfeed.tech/tags/collection.md>), [crud](<https://devfeed.tech/tags/crud.md>), [csharp](<https://devfeed.tech/tags/csharp.md>), [database](<https://devfeed.tech/tags/database.md>), [dotnet](<https://devfeed.tech/tags/dotnet.md>), [driver](<https://devfeed.tech/tags/driver.md>), [microsoft](<https://devfeed.tech/tags/microsoft.md>), [model](<https://devfeed.tech/tags/model.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [net](<https://devfeed.tech/tags/net.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [nosql](<https://devfeed.tech/tags/nosql.md>), [service](<https://devfeed.tech/tags/service.md>)

### AI overview

The tutorial builds on an earlier .NET Core console app by creating a RESTful API for basic CRUD operations against MongoDB Atlas. It requires a deployed, configured Atlas cluster (M0 or higher) and .NET Core 6 or later; cluster setup is outside its scope, and the examples use .NET Core 6. Initial steps create a web API project with the .NET Core CLI, install the MongoDB driver, define connection, database, and collection settings in a model, and store those values in appsettings.json. The excerpt names the sample_mflix database and playlist collection but does not show the API endpoint implementation.

### Source excerpt

If you've been keeping up with my development content, you'll remember that I recently wrote Build Your First .NET Core Application with MongoDB Atlas, which focused on building a console application ... The post Create a RESTful API with .NET Core and MongoDB appeared first on MongoDB.

## Everything you can tunnel with ngrok

DevFeed: [Everything you can tunnel with ngrok](<https://devfeed.tech/articles/everything-you-can-tunnel-with-ngrok-83225.md>)

Original publisher: [Read original article](<https://ngrok.com/blog/everything-you-can-tunnel-with-ngrok>)

Author: Frederico Hakamine

Published: 2022-02-15T00:00:00Z

Content type: tutorial

Language: en

Sources: [\[ngrok news\]](<https://devfeed.tech/sources/ngrok-news.md>)

Topics: [CI/CD](<https://devfeed.tech/topics/cicd.md>), [self-hosted runner](<https://devfeed.tech/topics/self-hosted-runner.md>), [AWS Fargate](<https://devfeed.tech/topics/aws-fargate.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [apis](<https://devfeed.tech/tags/apis.md>), [databases](<https://devfeed.tech/tags/databases.md>), [docker](<https://devfeed.tech/tags/docker.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [mariadb](<https://devfeed.tech/tags/mariadb.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [mysql](<https://devfeed.tech/tags/mysql.md>), [nestjs](<https://devfeed.tech/tags/nestjs.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [nextjs](<https://devfeed.tech/tags/nextjs.md>), [ngrok](<https://devfeed.tech/tags/ngrok.md>), [nodejs](<https://devfeed.tech/tags/nodejs.md>), [nutanix](<https://devfeed.tech/tags/nutanix.md>), [oracle](<https://devfeed.tech/tags/oracle.md>), [outlook](<https://devfeed.tech/tags/outlook.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [secure-tunnels](<https://devfeed.tech/tags/secure-tunnels.md>)

### AI overview

The article lists services and development tools that can be exposed through ngrok tunnels, with command-line examples for web servers, databases, file and directory services, programming frameworks, application servers, email, containers, and hypervisors.

### Source excerpt

What can you tunnel with ngrok? More and more, a better question is: What can't you tunnel with ngrok?

[Next page](<https://devfeed.tech/tags/net-core.md?cursor=WyIyMDIyLTAyLTE1VDAwOjAwOjAwKzAwOjAwIiwgIjYwODk3MjIzLTQyYmEtNGQ1Ny1iNDI3LTU4OTViMzA5NWRjNSJd>)