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
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.
Azure SDK for .NET