Esempio n. 1
0
 static ServiceLocator()
 {
     if (!_isInitialized)
     {
         lock (_lockThis)
         {
             ContainerBootstrapper.BootstrapAutofac();
             _commandBus     = ObjectFactory.GetInstance <ICommandBus>();
             _reportDatabase = ObjectFactory.GetInstance <IReportDatabase>();
             _isInitialized  = true;
         }
     }
 }