Freigeben über


IWebAppBase.SwapAsync(String, CancellationToken) Methode

Definition

Tauscht die app, die in der aktuellen Web-App/im aktuellen Web-Slot ausgeführt wird, durch die App, die im angegebenen Slot ausgeführt wird.

public System.Threading.Tasks.Task SwapAsync (string slotName, System.Threading.CancellationToken cancellationToken = default);
abstract member SwapAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function SwapAsync (slotName As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameter

slotName
String

Der Zielslot, mit dem getauscht werden soll. Verwenden Sie "production" für den Produktionsslot.

cancellationToken
CancellationToken

Gibt zurück

Gilt für: