Skip to content

Commit 9e0408c

Browse files
committed
Register as transient
1 parent f2b5f66 commit 9e0408c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

FinancialModelingPrepApi/DependencyInjectionExtensions.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ public static void AddFinancialModelingPrepApiClient(this IServiceCollection ser
3434
=> client.BaseAddress = new Uri("https://financialmodelingprep.com/api/"));
3535

3636
services.TryAddSingleton<IFinancialModelingPrepApiClient, FinancialModelingPrepApiClient>();
37-
services.TryAddScoped<ICompanyValuationProvider, CompanyValuationProvider>();
38-
services.TryAddScoped<IMarketIndexesProvider, MarketIndexesProvider>();
39-
services.TryAddScoped<IAdvancedDataProvider, AdvancedDataProvider>();
40-
services.TryAddScoped<ICalendarsProvider, CalendarsProvider>();
41-
services.TryAddScoped<IInstitutionalFundProvider, InstitutionalFundProvider>();
37+
services.TryAddTransient<ICompanyValuationProvider, CompanyValuationProvider>();
38+
services.TryAddTransient<IMarketIndexesProvider, MarketIndexesProvider>();
39+
services.TryAddTransient<IAdvancedDataProvider, AdvancedDataProvider>();
40+
services.TryAddTransient<ICalendarsProvider, CalendarsProvider>();
41+
services.TryAddTransient<IInstitutionalFundProvider, InstitutionalFundProvider>();
4242
}
4343
}
4444
}

0 commit comments

Comments
 (0)