CommunicationTokenRefreshOptions Constructor
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.
Initializes a new instance of CommunicationTokenRefreshOptions.
public CommunicationTokenRefreshOptions (bool refreshProactively, Func<System.Threading.CancellationToken,string> tokenRefresher);
new Azure.Communication.CommunicationTokenRefreshOptions : bool * Func<System.Threading.CancellationToken, string> -> Azure.Communication.CommunicationTokenRefreshOptions
Public Sub New (refreshProactively As Boolean, tokenRefresher As Func(Of CancellationToken, String))
Parameters
- refreshProactively
- Boolean
Indicates whether the token should be proactively renewed prior to expiry or renew on demand.
- tokenRefresher
- Func<CancellationToken,String>
The function that provides the token acquired from Communication Identity API. The returned token must be valid (its expiration date must be set in the future).
Applies to
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.
Azure SDK for .NET