Created
July 18, 2016 19:56
-
-
Save jbogard/26c1f63b5efb8ff008850587b295a3a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var container = new Container(); | |
var config = new MapperConfiguration(cfg => { | |
// config here, add profiles etc. | |
}); | |
container.RegisterSingleton<IConfigurationProvider>(config); | |
container.Register<IMapper>(() => new Mapper(container.Resolve<IConfigurationProvider>(), type => container.Resolve(type)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wich version of SimpleInjector you are using?
In version 3.2.7 dont have this method: container.Resolve
Has another way?
Thanks