Exemplo n.º 1
0
 protected RestartNode2Spec(RestartNode2SpecConfig config) : base(config)
 {
     _config = config;
     seed1System = new Lazy<ActorSystem>(() => ActorSystem.Create(Sys.Name, Sys.Settings.Config));
     restartedSeed1System = new Lazy<ActorSystem>(
         () => ActorSystem.Create(Sys.Name, ConfigurationFactory
             .ParseString("akka.remote.netty.tcp.port = " + SeedNodes.First().Port)
             .WithFallback(Sys.Settings.Config)));
 }
Exemplo n.º 2
0
 protected RestartNode2Spec(RestartNode2SpecConfig config) : base(config, typeof(RestartNode2Spec))
 {
     _config              = config;
     seed1System          = new Lazy <ActorSystem>(() => ActorSystem.Create(Sys.Name, Sys.Settings.Config));
     restartedSeed1System = new Lazy <ActorSystem>(
         () => ActorSystem.Create(Sys.Name, ConfigurationFactory
                                  .ParseString("akka.remote.netty.tcp.port = " + SeedNodes.First().Port)
                                  .WithFallback(Sys.Settings.Config)));
 }