ManagedIdentityAuthenticator.GetTokenAsync(Boolean) 方法

定义

获取安全令牌。

public System.Threading.Tasks.Task<Microsoft.Bot.Connector.Authentication.AuthenticatorResult> GetTokenAsync (bool forceRefresh = false);
abstract member GetTokenAsync : bool -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.Authentication.AuthenticatorResult>
override this.GetTokenAsync : bool -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.Authentication.AuthenticatorResult>
Public Function GetTokenAsync (Optional forceRefresh As Boolean = false) As Task(Of AuthenticatorResult)

参数

forceRefresh
Boolean

指示方法获取新令牌,而不考虑过期时间。

返回

Task<TResult> 对象。

实现

适用于