public async Task AddHeaders(HttpRequestMessage request, IDictionary <string, string> headers, IGetAuthorisationHeaderStrategy authStrategy) { if (headers != null) { foreach (var header in headers) { request.Headers.Add(header.Key, header.Value); } } if (authStrategy != null) { request.Headers.Add(HttpRequestHeader.Authorization.ToString(), new List <string> { await authStrategy.GetHeader() }); } }