C# – First steps with C# and .NET – part 063.

This new article presents a guide to running C# Azure functions in an isolated worker process.
They comes also with:
For complete examples, see the .NET 6 isolated sample project and the .NET Framework 4.8 isolated sample project
Isolated worker processes are designed to run untrusted code in a sandboxed environment, which makes them a good choice for running code that may be potentially dangerous or untrusted. They provide a secure and efficient way to run code in isolation from the main application process.
Isolated worker processes are a feature of .NET 5 and later versions, and they can be used in any environment that supports .NET 5 or later.
Let’s see one example, with a simple create console project:

Change the Program.cs source code with this:

Let’s build and run it and stop it with keys Ctrl + C:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.