コード例 #1
0
 public ContainerController(
     IHubContext <BaseHub> hub,
     ILogger <ContainerController> log,
     IContainerCore container,
     IMapper mapper) : base(log)
 {
     _hub       = hub;
     _log       = log;
     _container = container;
     _mapper    = mapper;
 }
コード例 #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);
        }
コード例 #3
0
 public SentryController(
     ILogger <SentryController> log,
     IContainerCore container,
     ISentry sentry,
     IMapper mapper
     ) : base(log)
 {
     _log       = log;
     _container = container;
     _sentry    = sentry;
     _mapper    = mapper;
 }
コード例 #4
0
 public void Init()
 {
     _container = new DIContainer(new ServiceModule());
 }
コード例 #5
0
 public Injector(IContainerCore container)
 {
     _container = container;
 }
コード例 #6
0
 public Implementor(IContainerCore containerCore)
     : base(containerCore)
 {
 }
コード例 #7
0
 public DataServiceProxy(IModule module) : base("DataServiceHttp")
 {
     _container = new DIContainer(module);
 }