你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Azure Functions libraries for .NET

Overview

Azure Functions is a solution for easily running small pieces of code, or functions, in Azure. Azure Functions supports a serverless execution model.

Durable Functions extension

Durable Functions is an extension of Azure Functions that lets you write stateful functions in a serverless compute environment. The extension lets you define stateful workflows by writing orchestrator functions and stateful entities by writing entity functions using the Azure Functions programming model. Behind the scenes, the extension manages state, checkpoints, and restarts for you, allowing you to focus on your business logic.

Install the extension NuGet package directly from the Visual Studio Package Manager console or with the .NET Core CLI.

The Azure API reference documentation supports version 2.x of the Durable Functions extension.

Visual Studio package manager

Install-Package Microsoft.Azure.WebJobs.Extensions.DurableTask

.NET Core CLI

dotnet add package Microsoft.Azure.WebJobs.Extensions.DurableTask

Getting started

Samples

View the complete list of Azure Functions samples.