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
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