ConfidentialClientApplication.StopLongRunningProcessInWebApiAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.