AzureBoards.

AzureBoards(HttpClient) Constructor

Summary

Initializes a new instance of the AzureBoards class.

Syntax

public AzureBoards(HttpClient client)

Examples

 var client = new HttpClient
 {
     BaseAddress = new Uri($"https://dev.azure.com/{organization.ArgumentNotEmptyOrWhitespace(nameof(organization))}")
 };
 client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(Encoding.UTF8.GetBytes($":{personalAccessToken}")));

 var board = new AzureBoards(client);

Parameters

Name Type Description
client HttpClient The preconfigured System.Net.Http.HttpClient with sets System.Net.Http.Headers.AuthenticationHeaderValue.

Return Value

Type Description
void