Table of Contents

Class DependencyInjection

Namespace
NuvTools.Payment.Omie.ApiClient
Assembly
NuvTools.Payment.Omie.ApiClient.dll

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

services IServiceCollection
configuration IConfiguration

Returns

IServiceCollection

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).