Beispiel #1
0
 public ContainerController(
     IHubContext <BaseHub> hub,
     ILogger <ContainerController> log,
     IContainerCore container,
     IMapper mapper) : base(log)
 {
     _hub       = hub;
     _log       = log;
     _container = container;
     _mapper    = mapper;
 }
Beispiel #2
0
        public ControllerCore(IModule controllerModule, IContainerCore container)
        {
            _controllerModule = controllerModule;
            _controllerModule.Load();
            _container = container;

            _viewFactory = new ViewFactory(_controllerModule, new Implementor(_container));
            //_container.Bind<IControllerCore>().ToInstance(this);
            _container.Bind <IControllerCore>().To <ControllerCore>()
            .WithArguments(_controllerModule, _container);
        }
Beispiel #3
0
 public SentryController(
     ILogger <SentryController> log,
     IContainerCore container,
     ISentry sentry,
     IMapper mapper
     ) : base(log)
 {
     _log       = log;
     _container = container;
     _sentry    = sentry;
     _mapper    = mapper;
 }
Beispiel #4
0
 public void Init()
 {
     _container = new DIContainer(new ServiceModule());
 }
Beispiel #5
0
 public Injector(IContainerCore container)
 {
     _container = container;
 }
Beispiel #6
0
 public Implementor(IContainerCore containerCore)
     : base(containerCore)
 {
 }
 public DataServiceProxy(IModule module) : base("DataServiceHttp")
 {
     _container = new DIContainer(module);
 }