Created
September 28, 2017 10:48
-
-
Save NMZivkovic/bdb1a177baeba61fcce04ee98cde4c5a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
public class BlogActor : ReceiveActor | |
{ | |
private IActorRef _users; | |
private IActorRef _reporting; | |
public BlogActor() | |
{ | |
_users = Context.ActorOf(Props.Create(typeof(UsersActor)), "users"); | |
_reporting = Context.ActorOf(Props.Create(typeof(ReportActor)), "reporting"); | |
Receive<Message>(message => { | |
_users.Forward(message); | |
_reporting.Forward(message); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment