Пример #1
0
 public TestConductor(ActorSystem system)
 {
     _settings = new TestConductorSettings(system.Settings.Config.WithFallback(TestConductorConfigFactory.Default())
                                           .GetConfig("akka.testconductor"));
     _transport = system.AsInstanceOf <ExtendedActorSystem>().Provider.AsInstanceOf <RemoteActorRefProvider>().Transport;
     _address   = _transport.DefaultAddress;
     _system    = system;
 }
Пример #2
0
        public ClientFSM(RoleName name, INode controllerAddr)
        {
            _settings = TestConductor.Get(Context.System).Settings;
            _handler  = new PlayerHandler(controllerAddr, _settings.ClientReconnects, _settings.ReconnectBackoff,
                                          _settings.ClientSocketWorkerPoolSize, Self, Logging.GetLogger(Context.System, "PlayerHandler"),
                                          Context.System.Scheduler);
            _name = name;

            InitFSM();
        }