Created
September 28, 2017 10:47
-
-
Save NMZivkovic/22a2c5494549c14f8e1f8ad4f2c7e505 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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