コード例 #1
0
 static StructureMapIOC()
 {
     if (!_isInitialized)
     {
         lock (_lockThis)
         {
             _commandBus     = IocContainer.Default.GetInstance <ICommandBus>();
             _reportDatabase = IocContainer.Default.GetInstance <IReportDatabase>();
             _isInitialized  = true;
         }
     }
 }
コード例 #2
0
 static ServiceLocator()
 {
     if (!_isInitialized)
     {
         lock (_lockThis)
         {
             ContainerBootstrapper.BootstrapStructureMap();
             _commandBus = ObjectFactory.GetInstance<ICommandBus>();
             _reportDatabase = ObjectFactory.GetInstance<IReportDatabase>();
             _isInitialized = true;
         }
     }
 }
コード例 #3
0
 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;
         }
     }
 }
コード例 #5
0
 public DiaryController(IReportDatabase db, IMediator mediator)
 {
     _db       = db;
     _mediator = mediator;
 }
コード例 #6
0
 public RoomCanceledEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
コード例 #7
0
 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;
 }
コード例 #12
0
 public RoomBookedEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
 public StudentEnrolledToSubjectEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
コード例 #14
0
 public RoomCheckedInEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
コード例 #15
0
 public ItemDescriptionChangedHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
コード例 #16
0
 public StudentAverageCalculatedEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
コード例 #17
0
 public SubjectDefinedEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
コード例 #18
0
 public StudyYearCreatedEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
コード例 #19
0
 public ItemChangeDescriptionEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
コード例 #20
0
 public ItemChangedTitleEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
コード例 #21
0
 public ItemFromChangedEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
コード例 #22
0
 public HomeController(ICommandBus commandBus, IReportDatabase reportDatabase)
 {
     _commandBus     = commandBus;
     _reportDatabase = reportDatabase;
 }