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 + @" } } } "); }
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 + @" } } } "); }
public BootstrapSetup WithConfig(Config config) { return(new BootstrapSetup(config, ActorRefProvider)); }
/// <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)); }
public IssueTrackerMailbox(Settings setting, AkkaConfig config) : base(setting, config) { }