Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created September 28, 2017 10:42
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/0584eaa1e2b5dfda385f86fe39c892c3 to your computer and use it in GitHub Desktop.
Save NMZivkovic/0584eaa1e2b5dfda385f86fe39c892c3 to your computer and use it in GitHub Desktop.
public class MessageProcessor : ReceiveActor
{
public MessageProcessor()
{
Receive<Message>(message => Console.WriteLine("Received a message with text: {0}", message.Text));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment