Skip to content

Commit

Permalink
Fix EstablishmentRefresher lifetime (#1746)
Browse files Browse the repository at this point in the history
  • Loading branch information
gunndabad authored Dec 10, 2024
1 parent bcf4580 commit c6a262e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static IHostApplicationBuilder AddGias(this IHostApplicationBuilder build
.ValidateOnStart();

builder.Services
.AddSingleton<EstablishmentRefresher>()
.AddTransient<EstablishmentRefresher>()
.AddSingleton<IEstablishmentMasterDataService, CsvDownloadEstablishmentMasterDataService>()
.AddHttpClient<IEstablishmentMasterDataService, CsvDownloadEstablishmentMasterDataService>((sp, httpClient) =>
{
Expand Down

0 comments on commit c6a262e

Please sign in to comment.