Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagec#
themeEmacs
titleServiceB
linenumberstrue
			using (ActorSystem actorSystem = ActorSystem.Create("ServiceB"))
            {
				//자신이 가진액터가 아닌, 원격지의 액터 선택이기 때문에 ActorSelection  사용합니다.
             IActorRef myActor   ActorSelection otherActor = actorSystem.ActorSelection("akka.tcp://ServiceA@127.0.0.1:8001/user/myactor");
                myActorotherActor.Tell("Hello");
                //콘솔 종료 방지 코드 생략...
            } //동일 컴퓨터이니 ServiceB의 설정포트를 8002로 변경

...