Skip to content

Instantly share code, notes, and snippets.

Created January 24, 2021 17:16
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save fzankl/a818eb8ed3fae8170224bf05dc92e83b to your computer and use it in GitHub Desktop.
YARP - Startup with custom configuration provider
public class Startup
private readonly IConfiguration _configuration;
public Startup(IConfiguration configuration)
_configuration = configuration;
public void ConfigureServices(IServiceCollection services)
.AddSingleton<IProxyConfigProvider>(new CustomProxyConfigProvider())
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
if (env.IsDevelopment())
app.UseEndpoints(endpoints =>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment