After upgrading to Enterprise Library 6.0 I'm having the following problem:
private static IUnityContainer container = EnterpriseLibraryContainer.Current.GetInstance();
Cannot resolve EnterpriseLibraryContainer
I found another post that speaks about the EnterpriseLibraryCOntainer on stackoverflow
In the upgrade notes of Enterprise Library it states:
“The name ‘EnterpriseLibraryContainer’ does not exist in the current context
The bootstrapping code for all of the blocks has changed in version 6 of Enterprise Library. The blocks no longer use Unity to manage the initialization and configuration, and each block now includes its own bootstrapping code. Any calls to the EnterpriseLibraryContainer.Current.GetInstance method to resolve a type from one of the Enterprise Library blocks should be replaced with the block specific bootstrap code. For example, to create a LogWriter instance based on configuration in the app.config file, you can now use the following code: LogWriterFactory logWriterFactory = new LogWriterFactory(); var logWriter = logWriterFactory.Create();
But I don't know how to handle this in the case of IUnityContainer. Could I just use
IUnityContainer container = new UnityContainer?
Thanks for your help