Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
static void Main(string[] args)
{
ActorSystem system = ActorSystem.Create("rubikscode");
IActorRef blogActor = system.ActorOf(Props.Create(typeof(BlogActor)), "blog");
blogActor.Tell(new StartedReadingMessage("NapoleonHill", "Tuples in .NET world and C# 7.0 improvements"));
// Used for simulation.
Thread.Sleep(1000);
blogActor.Tell(new StartedReadingMessage("VictorPelevin", "How to use “Art of War” to be better Software Craftsman"));
// Used for simulation.
Thread.Sleep(1000);
blogActor.Tell(new StopedReadingMessage("NapoleonHill", "Tuples in .NET world and C# 7.0 improvements"));
// Used for simulation.
Thread.Sleep(500);
blogActor.Tell(new StopedReadingMessage("VictorPelevin", "How to use “Art of War” to be better Software Craftsman"));
Console.ReadLine();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment