BatchTokenCredentials Constructors

Definition

Overloads

BatchTokenCredentials(String, Func<Task<String>>)

Initializes a new instance of the BatchTokenCredentials class with the specified Batch service endpoint and authentication token provider function.

BatchTokenCredentials(String, String)

Initializes a new instance of the BatchTokenCredentials class with the specified Batch service endpoint and authentication token.

BatchTokenCredentials(String, Func<Task<String>>)

Source:
BatchTokenCredentials.cs

Initializes a new instance of the BatchTokenCredentials class with the specified Batch service endpoint and authentication token provider function.

public BatchTokenCredentials (string baseUrl, Func<System.Threading.Tasks.Task<string>> tokenProvider);
new Microsoft.Azure.Batch.Auth.BatchTokenCredentials : string * Func<System.Threading.Tasks.Task<string>> -> Microsoft.Azure.Batch.Auth.BatchTokenCredentials
Public Sub New (baseUrl As String, tokenProvider As Func(Of Task(Of String)))

Parameters

baseUrl
String

The Batch service endpoint.

tokenProvider
Func<Task<String>>

A function which returns an authentication token.

Applies to

BatchTokenCredentials(String, String)

Source:
BatchTokenCredentials.cs

Initializes a new instance of the BatchTokenCredentials class with the specified Batch service endpoint and authentication token.

public BatchTokenCredentials (string baseUrl, string token);
new Microsoft.Azure.Batch.Auth.BatchTokenCredentials : string * string -> Microsoft.Azure.Batch.Auth.BatchTokenCredentials
Public Sub New (baseUrl As String, token As String)

Parameters

baseUrl
String

The Batch service endpoint.

token
String

An authentication token provided by Azure Active Directory.

Applies to