Class DependencyInjection
Extensions to register the Omie API client in the DI container.
public static class DependencyInjection
- Inheritance
-
DependencyInjection
- Inherited Members
Methods
AddOmieApiClient(IServiceCollection, IConfiguration)
Adds the Omie API client to the service container.
public static IServiceCollection AddOmieApiClient(this IServiceCollection services, IConfiguration configuration)
Parameters
servicesIServiceCollectionconfigurationIConfiguration
Returns
Remarks
Registered as a singleton because OmieApiClient owns a static HttpClient (intentionally bypassing HttpClientFactory and the standard resilience pipeline — see the comment on _staticClient in the implementation for why).