I am trying to set the connectionstring of my DbContext depending on each http request header. Is it possible to do so in .NET Core? I did it in MVC5 but I am not able to implement it in .NET core.
At
public void ConfigureServices(IServiceCollection services)
{
// ...
}
I don't know the http header, so where can I do it?