You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the example above, MyFirstAssembly may contain many interfaces whose implementations live inside MySecondAssembly and MyThirdAssembly. Unity Automapper makes no distinction between the source of those types - it concatenates them all together and treats them as a single set.
###AutomapTypes
Takes in a set of types and wires them up.
using System.Reflection;
container.AutomapTypes(typeof(IMyService), typeof(MyService)); // explicit
container.AutomapTypes(Assembly.GetExecutingAssembly().GetTypes()) // all types in this assembly.
###Overrides
Both methods also offer an override that takes in an instance of a MappingOptions object. This object contains further guidance on how the Automapper behaves in certain circumstances; see [here](Default Behaviours) for details on it.