示例#1
0
        public static ActorSystemEventRepository New(AkkaConfiguration conf, EventsAdaptersCatalog eventsAdaptersCatalog)
        {
            var actorSystem = conf.CreateSystem();

            actorSystem.InitDomainEventsSerialization(eventsAdaptersCatalog);

            return(new ActorSystemEventRepository(actorSystem));
        }
示例#2
0
        public AkkaEventsChronicle(AkkaConfiguration akkaConf)
        {
            _system = akkaConf.CreateSystem();

            _system.AddDependencyResolver(new UnityDependencyResolver(new UnityContainer(), _system));

            _transport = new LocalAkkaEventBusTransport(_system);

            var routingActor =
                _system.ActorOf(Props.Create(() => new LocalSystemRoutingActor(new DefaultHandlerActorTypeFactory(),
                                                                               new LocalAkkaEventBusTransport(_system))));

            var actorLocator = new DefaultAggregateActorLocator();

            Router = new ActorMessagesRouter(routingActor);
        }
示例#3
0
 public static ActorSystem CreateActorSystem(AkkaConfiguration akkaConf)
 {
     return(akkaConf.CreateSystem());
 }