コード例 #1
0
        private ActorSystem CreateActorSystem(IThuriaIocContainer iocContainer)
        {
            var actorSystem = ActorSystem.Create("TestHeliumAkkaIocRegistrySystem", ThuriaHoconLoader.FromFile("akka.config"));
            StructureMapDependencyResolver dependencyResolver = new StructureMapDependencyResolver((IContainer)iocContainer.Container, actorSystem);

            return(actorSystem);
        }
コード例 #2
0
        /// <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);
        }