Пример #1
0
 /// <summary>
 /// Initializes the Unity Container for the application and runs all Bootstrapper tasks in the AppDomain.
 /// </summary>
 private static void InitializeContainer()
 {
     ServiceContext.Logger.Info("Initializing container.");
     var bootstrapper = new Bootstrapper(UnityContainerFactory.Container, MapBinPath());
     bootstrapper.Run();
 }
Пример #2
0
 public void SetUp()
 {
     _unityContainer = new UnityContainer();
     _bootstrapper = new Bootstrapper(_unityContainer, Environment.CurrentDirectory);
 }