Compartilhar via


ClientAuthenticationWithTokenRefresh.SafeCreateNewTokenAsync Método

Definição

Cria um novo token com uma TTL sugerida.

protected abstract System.Threading.Tasks.Task<string> SafeCreateNewTokenAsync (string iotHub, TimeSpan suggestedTimeToLive);
abstract member SafeCreateNewTokenAsync : string * TimeSpan -> System.Threading.Tasks.Task<string>
Protected MustOverride Function SafeCreateNewTokenAsync (iotHub As String, suggestedTimeToLive As TimeSpan) As Task(Of String)

Parâmetros

iotHub
String

O nome de domínio do hub IoT.

suggestedTimeToLive
TimeSpan

O TTL sugerido.

Retornos

A cadeia de caracteres do token.

Aplica-se a