Share via


BatchTokenProvider(Func<Task<String>>) Constructor

Definition

Initializes a new instance of the BatchTokenProvider class.

public BatchTokenProvider (Func<System.Threading.Tasks.Task<string>> tokenProvider);
new Microsoft.Azure.Batch.Protocol.BatchTokenProvider : Func<System.Threading.Tasks.Task<string>> -> Microsoft.Azure.Batch.Protocol.BatchTokenProvider
Public Sub New (tokenProvider As Func(Of Task(Of String)))

Parameters

tokenProvider
Func<Task<String>>

A token provider function which retrieves an AAD token.

Applies to