Beispiel #1
0
        protected override IContainer CreateContainer(TransportMode mode, IDbConfiguration conf)
        {
            var container   = new ContainerBuilder();
            var actorSystem = ActorSystemBuilders[mode]();

            container.Register(new GridNodeContainerConfiguration(new LocalAkkaEventBusTransport(actorSystem), _logger));
            actorSystem.Terminate();
            return(container.Build());
        }
Beispiel #2
0
        protected override IUnityContainer CreateContainer(TransportMode mode, IDbConfiguration conf)
        {
            var container = new UnityContainer();

            var actorSystem = ActorSystemBuilders[mode]();

            //container.RegisterInstance<IMessageWaiterFactory>();
            CompositionRoot.Init(container, actorSystem, mode);

            actorSystem.Terminate();
            return(container);
        }
Beispiel #3
0
        protected override IUnityContainer CreateContainer(TransportMode mode, IDbConfiguration conf)
        {
            var container     = new UnityContainer();
            var configuration = new GridNodeContainerConfiguration(ActorSystemBuilders[mode](),
                                                                   conf,
                                                                   mode,
                                                                   new InMemoryQuartzConfig());

            container.Register(configuration);

            Node.CompositionRoot.Init(container, conf);
            return(container);
        }