Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created September 28, 2017 10:47
Show Gist options
  • Save NMZivkovic/22a2c5494549c14f8e1f8ad4f2c7e505 to your computer and use it in GitHub Desktop.
Save NMZivkovic/22a2c5494549c14f8e1f8ad4f2c7e505 to your computer and use it in GitHub Desktop.
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