<PackageReference Include="System.ClientModel" Version="1.7.0" />

AuthenticationTokenProvider

public abstract class AuthenticationTokenProvider
The base class for all AuthenticationTokenProvider implementations.
using System.ClientModel.Primitives; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; namespace System.ClientModel { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] public abstract class AuthenticationTokenProvider { [return: System.Runtime.CompilerServices.Nullable(2)] public abstract GetTokenOptions CreateTokenOptions(IReadOnlyDictionary<string, object> properties); public abstract AuthenticationToken GetToken(GetTokenOptions options, CancellationToken cancellationToken); [return: System.Runtime.CompilerServices.Nullable(new byte[] { 0, 1 })] public abstract ValueTask<AuthenticationToken> GetTokenAsync(GetTokenOptions options, CancellationToken cancellationToken); } }