Page History
...
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="akka" type="Akka.Configuration.Hocon.AkkaConfigurationSection, Akka" />
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
<akka>
<hocon>
<![CDATA[
akka {
actor {
provider = "Akka.Remote.RemoteActorRefProvider, Akka.Remote"
}
remote {
log-remote-lifecycle-events = DEBUG
log-received-messages = on
helios.tcp {
port = 8001 #bound to a specific port
hostname = 127.0.0.1
}
}
}
]]>
</hocon>
</akka>
</configuration> | ||||
var config = ConfigurationFactory.ParseString(@" akka.remote.dot-netty.tcp { transport-class = ""Akka.Remote.Transport.DotNetty.DotNettyTransport,
Akka.Remote"" transport-protocol = tcp port = 8091 hostname = ""127.0.0.1"" }"); var system = ActorSystem.Create("MyActorSystem", config);
...