This file contains 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