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; } } }
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; }
public ItemRenamedEventHandler(IReportDatabase reportDatabase) { _reportDatabase = reportDatabase; }
public ItemCreatedEventHandler(IReportDatabase reportDatabase) { _reportDatabase = reportDatabase; }
public SubjectSituationShowedEventHandler(IReportDatabase reportDatabase) { _reportDatabase = reportDatabase; }
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; }
public StudentAverageCalculatedEventHandler(IReportDatabase reportDatabase) { _reportDatabase = reportDatabase; }
public SubjectDefinedEventHandler(IReportDatabase reportDatabase) { _reportDatabase = reportDatabase; }
public StudyYearCreatedEventHandler(IReportDatabase reportDatabase) { _reportDatabase = reportDatabase; }
public ItemChangeDescriptionEventHandler(IReportDatabase reportDatabase) { _reportDatabase = reportDatabase; }
public ItemChangedTitleEventHandler(IReportDatabase reportDatabase) { _reportDatabase = reportDatabase; }
public ItemFromChangedEventHandler(IReportDatabase reportDatabase) { _reportDatabase = reportDatabase; }
public HomeController(ICommandBus commandBus, IReportDatabase reportDatabase) { _commandBus = commandBus; _reportDatabase = reportDatabase; }