Skip to content

Commit

Permalink
Register module as singleton
Browse files Browse the repository at this point in the history
  • Loading branch information
jchannon authored Aug 12, 2021
1 parent fbe071a commit 632c7c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Carter/CarterExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private static void WireupCarter(this IServiceCollection services,
foreach (var newModule in newModules)
{
//services.AddScoped(newModule);
services.AddScoped(typeof(ICarterModule), newModule);
services.AddSingleton(typeof(ICarterModule), newModule);
}

foreach (var negotiator in responseNegotiators)
Expand Down

0 comments on commit 632c7c7

Please sign in to comment.