Skip to content

Instantly share code, notes, and snippets.

View mleybsage's full-sized avatar
🔧
Sorting stuff out

Mark Leybourne mleybsage

🔧
Sorting stuff out
View GitHub Profile
@mleybsage
mleybsage / AUsage.cs
Created April 12, 2020 12:31 — forked from davidfowl/AUsage.cs
Header propagation HttpClientFactory middleware
public void ConfigureServices(IServiceCollection services)
{
services.AddHttpClient("myclient");
// Global header propagation for any HttpClient that comes from HttpClientFactory
services.AddHeaderPropagation(options =>
{
options.HeaderNames.Add("Correlation-Id");
});
}