public static async Task SetupClientCredentials(this ServiceHttpClient client, Func <Task <TokenClient> > tokenClientProvider)
 {
     client.SetBearerToken(await client.GetAccessToken(tokenClientProvider));
 }