Class ServiceCollectionExtensions
- Namespace
- Honua.Sdk.Admin.Extensions
- Assembly
- Honua.Sdk.Admin.dll
Extension methods for registering the Honua Admin client with dependency injection.
public static class ServiceCollectionExtensions
- Inheritance
-
ServiceCollectionExtensions
- Inherited Members
Methods
AddHonuaAdmin(IServiceCollection, Action<HonuaAdminClientOptions>)
Registers the Honua Admin client and related services with the DI container.
The supplied configure delegate is invoked exactly once to capture
options; primary HTTP handler and resilience pipeline configuration are derived from
that snapshot.
public static IServiceCollection AddHonuaAdmin(this IServiceCollection services, Action<HonuaAdminClientOptions> configure)
Parameters
servicesIServiceCollectionThe service collection to register with.
configureAction<HonuaAdminClientOptions>Configuration delegate for client options.
Returns
- IServiceCollection
The service collection for chaining.
AddHonuaCatalog(IServiceCollection, Action<HonuaAdminClientOptions>)
Registers the Honua catalog discovery client with the DI container.
Uses the same HonuaAdminClientOptions and Honua.Sdk.Admin.HonuaAdminAuthHandler
as the Admin client for authentication and base address configuration.
The supplied configure delegate is invoked exactly once.
public static IServiceCollection AddHonuaCatalog(this IServiceCollection services, Action<HonuaAdminClientOptions> configure)
Parameters
servicesIServiceCollectionThe service collection to register with.
configureAction<HonuaAdminClientOptions>Configuration delegate for client options.
Returns
- IServiceCollection
The service collection for chaining.
AddHonuaGeocoding(IServiceCollection, Action<HonuaAdminClientOptions>)
Registers the Honua Geocoding client and related services with the DI container.
Uses the same HonuaAdminClientOptions and Honua.Sdk.Admin.HonuaAdminAuthHandler
as the Admin client for authentication and base address configuration.
The supplied configure delegate is invoked exactly once.
public static IServiceCollection AddHonuaGeocoding(this IServiceCollection services, Action<HonuaAdminClientOptions> configure)
Parameters
servicesIServiceCollectionThe service collection to register with.
configureAction<HonuaAdminClientOptions>Configuration delegate for client options. If AddHonuaAdmin(IServiceCollection, Action<HonuaAdminClientOptions>) has already been called, options and the auth handler are shared.
Returns
- IServiceCollection
The service collection for chaining.