Skip to content

Commit

Permalink
Merge pull request #141 from Ali-YousefiTelori/develop
Browse files Browse the repository at this point in the history
Fix InternalContentResolver DI bug
  • Loading branch information
Ali-YousefiTelori authored Jan 29, 2024
2 parents c83bdf6 + 83314fc commit 35fc2b3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ public static IServiceCollection Builder<TContext>(this IServiceCollection servi
option.ExceptionHandler = AppAuthorizationMiddleware.ExceptionHandler;
});
services.AddScoped<Contents.GeneratedServices.ContentClient>(service => new Contents.GeneratedServices.ContentClient(GetContentAddress(service)?.Address, new HttpClient()));
services.AddSingleton<ContentLanguageHelper>();
services.AddSingleton<IContentResolver, InternalContentResolver>();
services.AddScoped<ContentLanguageHelper>();
services.AddScoped<IContentResolver, InternalContentResolver>();
return services;
}

Expand Down

0 comments on commit 35fc2b3

Please sign in to comment.