static void Main(string[] args) { Title = "Seed Node 1"; Log.Logger = LoggerSetup.LogToConsoleAndSeq("http://localhost:5341"); Log.Information("Seed Node 1 has started"); ReadKey(); Log.Information("Seed Node 1 has stopped"); }
static void Main(string[] args) { Title = "Remote Node"; BackgroundColor = ConsoleColor.DarkBlue; Log.Logger = LoggerSetup.LogToConsoleAndSeq("http://localhost:5341"); using (var actorSystem = ActorSystem.Create("RemoteNode")) { Log.Information("remote Node up"); ReadKey(); } }
static void Main(string[] args) { Title = "Parent node - remoting"; Log.Logger = LoggerSetup.LogToConsoleAndSeq("http://localhost:5341"); Log.Information("Start parent node"); using (var actorSystem = ActorSystem.Create("remoteExample")) { var logProcessedActor = actorSystem.ActorOf(Props.Create <LogProcessedDataActor>(), "LogProcessed"); var processActor = actorSystem.ActorOf(Props.Create(() => new SampleProcessActor(logProcessedActor)), "ProcessActor"); var remoteManager = actorSystem.ActorOf(Props.Create(() => new RemoteManagerActor(processActor)), "RemoteManager"); ReadKey(); } }