Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created September 28, 2017 10:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NMZivkovic/bdb1a177baeba61fcce04ee98cde4c5a to your computer and use it in GitHub Desktop.
Save NMZivkovic/bdb1a177baeba61fcce04ee98cde4c5a to your computer and use it in GitHub Desktop.
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