Skip to content

Commit

Permalink
fixed registration (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasguentert authored Oct 28, 2022
1 parent abb0270 commit 3d5faeb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ private static void AddBodyLogger(IServiceCollection services, Action<BodyLogger

private static void AddBodyLogger(IServiceCollection services)
{
services.AddSingleton<BodyLoggerMiddleware>();
services.AddSingleton<IBodyReader, BodyReader>();
services.AddSingleton<ITelemetryWriter, TelemetryWriter>();
services.AddScoped<BodyLoggerMiddleware>();
services.AddScoped<IBodyReader, BodyReader>();
services.AddScoped<ITelemetryWriter, TelemetryWriter>();
services.AddSingleton<ITelemetryInitializer, ClientIpInitializer>();
}
}
Expand Down

0 comments on commit 3d5faeb

Please sign in to comment.