Skip to content

Commit

Permalink
Fix hot reload for Swagger documentation (#230)
Browse files Browse the repository at this point in the history
Issue #224 - Fix Swagger documentation hot reload.
  • Loading branch information
catalingoran authored May 18, 2022
1 parent 7e79bc9 commit cff9687
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static IServiceCollection AddSwaggerForOcelot(
.Configure<List<SwaggerEndPointOptions>>(configuration.GetSection(SwaggerEndPointOptions.ConfigurationSectionName))
.AddHttpClient()
.AddMemoryCache()
.AddSingleton<ISwaggerEndPointProvider, SwaggerEndPointProvider>();
.AddTransient<ISwaggerEndPointProvider, SwaggerEndPointProvider>();

services.AddHttpClient(IgnoreSslCertificate, c =>
{
Expand Down

0 comments on commit cff9687

Please sign in to comment.