예제 #1
0
 public static void setConfig()
 {
     AkkaConfig = Akka.Configuration.ConfigurationFactory.ParseString(@"
         akka {
             actor {
                 provider = ""Akka.Remote.RemoteActorRefProvider, Akka.Remote""
             }
             remote {
                 helios.tcp {
                     transport-class = ""Akka.Remote.Transport.Helios.HeliosTcpTransport, Akka.Remote""
                     applied-adapters = []
                     transport-protocol = tcp
                     port = " + AkkaPort + @"
                     hostname = " + AkkaIp + @"
                 }
             }
         }
         ");
 }
예제 #2
0
        public static void setServerConfig()
        {
            AkkaServerSelection = "akka.tcp://" + AkkaServer + "@" + AkkaServerIp + ":" + AkkaServerPort + "/user/" + AkkaServer;
            Console.WriteLine("AkkaServerSelection: " + AkkaServerSelection);

            AkkaServerConfig = Akka.Configuration.ConfigurationFactory.ParseString(@"
                akka {
                    actor {
                        provider = ""Akka.Remote.RemoteActorRefProvider, Akka.Remote""
                    }
                    remote {
                        helios.tcp {
                            transport-class = ""Akka.Remote.Transport.Helios.HeliosTcpTransport, Akka.Remote""
                            applied-adapters = []
                            transport-protocol = tcp
                            port = " + AkkaServerPort + @"
                            hostname = " + AkkaServerIp + @"
                        }
                    }
                }
                ");
        }
예제 #3
0
 public BootstrapSetup WithConfig(Config config)
 {
     return(new BootstrapSetup(config, ActorRefProvider));
 }
예제 #4
0
 /// <summary>
 /// Creates a new <see cref="ActorSystem"/> with the specified name and configuration.
 /// </summary>
 /// <param name="name">The name of the actor system to create. The name must be uri friendly.
 /// <remarks>Must contain only word characters (i.e. [a-zA-Z0-9] plus non-leading '-'</remarks>
 /// </param>
 /// <param name="config">The configuration used to create the actor system</param>
 /// <returns>A newly created actor system with the given name and configuration.</returns>
 public static ActorSystem Create(string name, Config config)
 {
     return(CreateAndStartSystem(name, config, ActorSystemSetup.Empty));
 }
예제 #5
0
 public IssueTrackerMailbox(Settings setting, AkkaConfig config) : base(setting, config)
 {
 }