Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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