Exemplo n.º 1
0
 static StructureMapIOC()
 {
     if (!_isInitialized)
     {
         lock (_lockThis)
         {
             _commandBus     = IocContainer.Default.GetInstance <ICommandBus>();
             _reportDatabase = IocContainer.Default.GetInstance <IReportDatabase>();
             _isInitialized  = true;
         }
     }
 }
Exemplo n.º 2
0
 static ServiceLocator()
 {
     if (!_isInitialized)
     {
         lock (_lockThis)
         {
             ContainerBootstrapper.BootstrapStructureMap();
             _commandBus = ObjectFactory.GetInstance<ICommandBus>();
             _reportDatabase = ObjectFactory.GetInstance<IReportDatabase>();
             _isInitialized = true;
         }
     }
 }
Exemplo n.º 3
0
 static ServiceLocator()
 {
     if (!IsInitialized)
     {
         lock (LockThis)
         {
             ContainerBootstrapper.BootstrapStructureMap();
             _commandBus     = ObjectFactory.GetInstance <ICommandBus>();
             _reportDatabase = ObjectFactory.GetInstance <IReportDatabase>();
             IsInitialized   = true;
         }
     }
 }
Exemplo n.º 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;
 }
Exemplo n.º 8
0
 public ItemRenamedEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
Exemplo n.º 9
0
 public ItemCreatedEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
 public SubjectSituationShowedEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
Exemplo n.º 11
0
 public StudentAddedEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
Exemplo n.º 12
0
 public RoomBookedEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
 public StudentEnrolledToSubjectEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
 public RoomCheckedInEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
 public ItemDescriptionChangedHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
Exemplo n.º 16
0
 public StudentAverageCalculatedEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
Exemplo n.º 17
0
 public SubjectDefinedEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
 public StudyYearCreatedEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
Exemplo n.º 19
0
 public ItemChangeDescriptionEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
 public ItemChangedTitleEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
 public ItemFromChangedEventHandler(IReportDatabase reportDatabase)
 {
     _reportDatabase = reportDatabase;
 }
Exemplo n.º 22
0
 public HomeController(ICommandBus commandBus, IReportDatabase reportDatabase)
 {
     _commandBus     = commandBus;
     _reportDatabase = reportDatabase;
 }