Class ServiceCollectionExtensions
- Namespace
- Mapperion
- Assembly
- Mapperion.Extensions.DependencyInjection.dll
Registers Mapperion with IServiceCollection.
public static class ServiceCollectionExtensions
- Inheritance
-
ServiceCollectionExtensions
- Inherited Members
Methods
- AddMapperion(IServiceCollection, Action<IMapperConfigurationExpression>, ServiceLifetime)
Builds the configuration once and registers it, plus an IMapper bound to the container so converters, resolvers and mapping actions can take dependencies.
- AddMapperion(IServiceCollection, params Assembly[])
Registers every profile found in the given assemblies, then the mapper.
- AddMapperion(IServiceCollection, params Type[])
Registers every profile found in the assemblies the given types come from, then the mapper. Handy when a marker type is easier to name than an assembly.