This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Board.AzureBoards.
Summary
Initializes a new instance of the
AzureBoards
class.
- Assembly
- Cake
.Board .AzureBoards .dll - Namespace
- Cake
.Board .AzureBoards - Containing Type
- AzureBoards
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 |