Method Initialize
- Namespace
- Mapperion
- Assembly
- Mapperion.dll
Initialize(IMapper)
Installs the mapper every call to Instance will return.
public static void Initialize(IMapper mapper)
Parameters
mapperIMapperThe mapper to install.
Exceptions
- ArgumentNullException
mapperis null.- InvalidOperationException
A mapper is already installed. Installing a second one halfway through a process would change what earlier call sites resolve to, so it has to be deliberate: call Reset() first.