次の方法で共有


ConfidentialClientApplication.StopLongRunningProcessInWebApiAsync Method

Definition

Stops an in-progress long-running on-behalf-of session by removing the tokens associated with the provided cache key. See Long-running OBO in MSAL.NET.

public System.Threading.Tasks.Task<bool> StopLongRunningProcessInWebApiAsync (string longRunningProcessSessionKey, System.Threading.CancellationToken cancellationToken = default);
member this.StopLongRunningProcessInWebApiAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function StopLongRunningProcessInWebApiAsync (longRunningProcessSessionKey As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)

Parameters

longRunningProcessSessionKey
String

OBO cache key used to remove the tokens.

cancellationToken
CancellationToken

Cancellation token.

Returns

True if tokens are removed from the cache; false, otherwise.

Exceptions

longRunningProcessSessionKey is not set.

Applies to