Class S100MapsuiServiceCollectionExtensions
IServiceCollection helpers for registering the reusable S-100 Mapsui session with Microsoft dependency injection. Using DI is optional — hosts can compose a session manually with AddS100(Map, S100MapsuiOptions?).
public static class S100MapsuiServiceCollectionExtensions
- Inheritance
-
S100MapsuiServiceCollectionExtensions
- Inherited Members
Methods
AddS100Mapsui(IServiceCollection, Func<IServiceProvider, S100MapsuiOptions>?)
Registers an IS100MapSessionFactory that creates a per-Mapsui.Map IS100MapSession from container-resolved dependencies.
public static IServiceCollection AddS100Mapsui(this IServiceCollection services, Func<IServiceProvider, S100MapsuiOptions>? optionsFactory = null)
Parameters
servicesIServiceCollectionThe service collection.
optionsFactoryFunc<IServiceProvider, S100MapsuiOptions>Optional factory for S100MapsuiOptions, letting the host supply a DatasetPipelineFactory, S-98 authority provider, pattern-clip cache, or render-subsystem/scene configuration from DI. When omitted, sessions use the defaults of AddS100(Map, S100MapsuiOptions?). (A factory delegate is used rather than a mutating action because S100MapsuiOptions is immutable.)
Returns
- IServiceCollection
The same
servicesfor chaining.
Remarks
The host must separately register an ICrsTransformFactory (e.g.
ProjNetCrsTransformFactory); the reusable assembly ships no CRS
implementation. Registration is idempotent.