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

IDurableOrchestrationClient.MakeCurrentAppPrimaryAsync Method

Definition

Makes the current app the primary app, if it isn't already. Must be using the AppLease feature by setting UseAppLease to true in host.json.

public System.Threading.Tasks.Task MakeCurrentAppPrimaryAsync();
abstract member MakeCurrentAppPrimaryAsync : unit -> System.Threading.Tasks.Task
Public Function MakeCurrentAppPrimaryAsync () As Task

Returns

A task that completes when the operation has started.

Applies to