-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed ConfigurationFactory to load App.Config automatically from disk Modified TimeServer example to use auto-loading config
- Loading branch information
1 parent
c4070e7
commit edd6d94
Showing
5 changed files
with
106 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,55 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> | ||
</startup> | ||
<configSections> | ||
<section name="akka" type="Akka.Configuration.Hocon.AkkaConfigurationSection, Akka" /> | ||
</configSections> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> | ||
</startup> | ||
<akka> | ||
<hocon> | ||
<![CDATA[ | ||
akka { | ||
log-config-on-start = on | ||
stdout-loglevel = DEBUG | ||
loglevel = ERROR | ||
actor { | ||
provider = "Akka.Remote.RemoteActorRefProvider, Akka.Remote" | ||
debug { | ||
receive = off | ||
autoreceive = on | ||
lifecycle = on | ||
event-stream = on | ||
unhandled = on | ||
} | ||
} | ||
deployment{ | ||
/user/timeChecker{ | ||
router = round-robin-pool | ||
nr-of-instances = 10 | ||
} | ||
} | ||
remote { | ||
log-received-messages = off | ||
log-sent-messages = off | ||
#this is the new upcoming remoting support, which enables multiple transports | ||
helios.tcp { | ||
transport-class = "Akka.Remote.Transport.Helios.HeliosTcpTransport, Akka.Remote" | ||
applied-adapters = [] | ||
transport-protocol = tcp | ||
port = 0 #bind to any available port | ||
hostname = 0.0.0.0 #listens on ALL ips for this machine | ||
public-hostname = localhost #but only accepts connections on localhost (usually 127.0.0.1) | ||
} | ||
log-remote-lifecycle-events = INFO | ||
} | ||
} | ||
]]> | ||
</hocon> | ||
</akka> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,55 @@ | ||
<?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" /> | ||
</startup> | ||
<akka> | ||
<hocon> | ||
<![CDATA[ | ||
akka { | ||
log-config-on-start = on | ||
stdout-loglevel = DEBUG | ||
loglevel = ERROR | ||
actor { | ||
provider = "Akka.Remote.RemoteActorRefProvider, Akka.Remote" | ||
debug { | ||
receive = on | ||
autoreceive = on | ||
lifecycle = on | ||
event-stream = on | ||
unhandled = on | ||
} | ||
} | ||
deployment{ | ||
/user/time{ | ||
router = round-robin-pool | ||
nr-of-instances = 10 | ||
} | ||
} | ||
remote { | ||
log-received-messages = off | ||
log-sent-messages = off | ||
#this is the new upcoming remoting support, which enables multiple transports | ||
helios.tcp { | ||
transport-class = "Akka.Remote.Transport.Helios.HeliosTcpTransport, Akka.Remote" | ||
applied-adapters = [] | ||
transport-protocol = tcp | ||
port = 9391 | ||
hostname = 0.0.0.0 #listens on ALL ips for this machine | ||
public-hostname = localhost #but only accepts connections on localhost (usually 127.0.0.1) | ||
} | ||
log-remote-lifecycle-events = INFO | ||
} | ||
} | ||
]]> | ||
</hocon> | ||
</akka> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
edd6d94
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TeamCity Akka.NET :: Akka.NET PR Build Build 59 is now running
edd6d94
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TeamCity Akka.NET :: Akka.NET PR Build Build 59 outcome was FAILURE
Summary: System.Exception: xUnit failed for the following assemblies: D:\BuildAgent\work\49b164d63843fb4\src\core\Akka.Persistence.Tests\bin\Release\Akka.Persistence.Tests.dll, D:\BuildAgent\work\49b164d63843fb4\src\core\Akka.Tests\bin\Release\Akka.Tests.dll ... Build time: 00:09:11
Failed tests
edd6d94
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welp, that's a major problem. Definitely broke something. Let me see what's up.