public static void AddAuthentication(this IHttpClientService service, string scheme, string parameter) { var token = new AuthenticationHeaderValue(scheme, parameter); service.AddDecorator(i => i.Headers.Authorization = token); }