Class AlphaVantageServiceCollectionExtensions
- Namespace
- Tudormobile.AlphaVantage.Extensions
- Assembly
- Tudormobile.AlphaVantageAPI.dll
Provides extension methods for registering Alpha Vantage client services with an IServiceCollection.
public static class AlphaVantageServiceCollectionExtensions
- Inheritance
-
AlphaVantageServiceCollectionExtensions
- Inherited Members
Remarks
Use these extension methods to add and configure Alpha Vantage API clients in ASP.NET Core dependency injection containers. This enables applications to access financial data from Alpha Vantage using strongly-typed services.
Methods
AddAlphaVantageClient(IServiceCollection, Action<IAlphaVantageClientBuilder>)
Adds AlphaVantage client services to the specified IServiceCollection.
public static IServiceCollection AddAlphaVantageClient(this IServiceCollection services, Action<IAlphaVantageClientBuilder> configure)
Parameters
servicesIServiceCollectionThe IServiceCollection to add services to.
configureAction<IAlphaVantageClientBuilder>The action used to configure the IAlphaVantageClientBuilder.
Returns
- IServiceCollection
The IServiceCollection so that additional calls can be chained.