示例#1
0
 static StructureMapIOC()
 {
     if (!_isInitialized)
     {
         lock (_lockThis)
         {
             _commandBus     = IocContainer.Default.GetInstance <ICommandBus>();
             _reportDatabase = IocContainer.Default.GetInstance <IReportDatabase>();
             _isInitialized  = true;
         }
     }
 }
 static ServiceLocator()
 {
     if (!_isInitialized)
     {
         lock (_lockThis)
         {
             ContainerBootstrapper.BootstrapStructureMap();
             _commandBus = ObjectFactory.GetInstance<ICommandBus>();
             _reportDatabase = ObjectFactory.GetInstance<IReportDatabase>();
             _isInitialized = true;
         }
     }
 }
 static ServiceLocator()
 {
     if (!IsInitialized)
     {
         lock (LockThis)
         {
             ContainerBootstrapper.BootstrapStructureMap();
             _commandBus     = ObjectFactory.GetInstance <ICommandBus>();
             _reportDatabase = ObjectFactory.GetInstance <IReportDatabase>();
             IsInitialized   = true;
         }
     }
 }
示例#4
0
 static ServiceLocator()
 {
     if (!_isInitialized)
     {
         lock (_lockThis)
         {
             ContainerBootstrapper.BootstrapAutofac();
             _commandBus     = ObjectFactory.GetInstance <ICommandBus>();
             _reportDatabase = ObjectFactory.GetInstance <IReportDatabase>();
             _isInitialized  = true;
         }
     }
 }
 public DiaryController(IReportDatabase db, IMediator mediator)
 {
     _db       = db;
     _mediator = mediator;
 }
 public RoomCanceledEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
 public ItemDeletedEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatebase = reportDatabase;
 }
示例#8
0
 public ItemRenamedEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
示例#9
0
 public ItemCreatedEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
 public SubjectSituationShowedEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
示例#11
0
 public StudentAddedEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
 public RoomBookedEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
 public StudentEnrolledToSubjectEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
 public RoomCheckedInEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
 public ItemDescriptionChangedHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
示例#16
0
 public StudentAverageCalculatedEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
示例#17
0
 public SubjectDefinedEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
 public StudyYearCreatedEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
示例#19
0
 public ItemChangeDescriptionEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
 public ItemChangedTitleEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
 public ItemFromChangedEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
示例#22
0
 public HomeController(ICommandBus commandBus, IReportDatabase reportDatabase)
 {
     _commandBus     = commandBus;
     _reportDatabase = reportDatabase;
 }