public static ActorSystemEventRepository New(AkkaConfiguration conf, EventsAdaptersCatalog eventsAdaptersCatalog) { var actorSystem = conf.CreateSystem(); actorSystem.InitDomainEventsSerialization(eventsAdaptersCatalog); return(new ActorSystemEventRepository(actorSystem)); }
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); }
public static ActorSystem CreateActorSystem(AkkaConfiguration akkaConf) { return(akkaConf.CreateSystem()); }