private ActorSystem CreateActorSystem(IThuriaIocContainer iocContainer) { var actorSystem = ActorSystem.Create("TestHeliumAkkaIocRegistrySystem", ThuriaHoconLoader.FromFile("akka.config")); StructureMapDependencyResolver dependencyResolver = new StructureMapDependencyResolver((IContainer)iocContainer.Container, actorSystem); return(actorSystem); }
/// <inheritdoc /> public virtual void Start() { var akkaConfiguration = ThuriaHoconLoader.FromFile(ConfigurationFileLocation); ActorSystem = ActorSystem.Create(Name, akkaConfiguration); // ReSharper disable once ObjectCreationAsStatement new StructureMapDependencyResolver((IContainer)_iocContainer.Container, ActorSystem); }