Interface IBobLocalizationBuilder
- Namespace
- BlazOrbit.Localization
- Assembly
- BlazOrbit.Core.dll
Fluent builder returned by AddBlazOrbitLocalization(IServiceCollection, Action<BobLocalizationOptions>?) so consumers can chain custom provider registrations without re-typing the service collection.
public interface IBobLocalizationBuilder
Properties
Services
The underlying service collection.
IServiceCollection Services { get; }
Property Value
- IServiceCollection
Methods
AddProvider<TProvider>(ServiceLifetime)
Registers a custom IBobLocalizationProvider with the DI container.
IBobLocalizationBuilder AddProvider<TProvider>(ServiceLifetime lifetime = ServiceLifetime.Singleton) where TProvider : class, IBobLocalizationProvider
Parameters
lifetimeServiceLifetimeService lifetime - defaults to Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton.
Returns
Type Parameters
TProviderThe provider implementation type.