간단
-
ReceiveActor 예제ETC 2018. 12. 20. 15:29
메시지를 받는 기본 액터객체를 생성해보자using System; using System.Threading; using System.Threading.Tasks; using System.Xml; using Akka.Actor; //메시지 객체public class Greet { public Greet(string who) { Who = who; } public string Who { get; private set; } } //액터 객체public class GreetingActor : ReceiveActor { public GreetingActor() { Receive(greet => { Console.WriteLine("[GreetingActor] :" + greet.Who); }); } } //실행 코..