Skip to content

Commit

Permalink
updated Akka.Cluster samples (#4725)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaronontheweb committed Jan 19, 2021
1 parent 7f045af commit ba6619a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<![CDATA[
akka {
actor {
provider = "Akka.Cluster.ClusterActorRefProvider, Akka.Cluster"
provider = cluster
}
remote {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static void Main(string[] args)
LaunchFrontend(new string[0]);
//starting 2 frontend nodes and 3 backend nodes
Console.WriteLine("Press any key to exit.");
Console.ReadKey();
Console.ReadLine();
}

static void LaunchBackend(string[] args)
Expand Down
2 changes: 1 addition & 1 deletion src/examples/Cluster/Samples.Cluster.Simple/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<![CDATA[
akka {
actor {
provider = "Akka.Cluster.ClusterActorRefProvider, Akka.Cluster"
provider = cluster
}
remote {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ protected override void OnReceive(object message)
Log.Info("Member is Up: {0}", mem.Member);
break;
}
case ClusterEvent.MemberJoined joined:
Log.Info("Member is joining {0}", joined.Member);
break;
case ClusterEvent.UnreachableMember unreachable:
Log.Info("Member detected as unreachable: {0}", unreachable.Member);
break;
Expand Down

0 comments on commit ba6619a

Please sign in to comment.