Пример #1
0
 private static void InitializeContainer(MyDiContainerBase uc)
 {
     lock (locker)
     {
         if (container == null)
         {
             container = new UnityContainer();
         }
         uc.InitializeContainer(container);
     }
 }
Пример #2
0
 public static IUnityContainer Container(MyDiContainerBase uc)
 {
     lock (locker)
     {
         if (container == null)
         {
             InitializeContainer(uc);
         }
     }
     return(container);
 }