Page History
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
using System;
using Akka.Actor;
namespace ServiceA
{
class Program
{
static void Main(string[] args)
{
ConsoleKeyInfo cki;
Console.CancelKeyPress += new ConsoleCancelEventHandler(myHandler);
using (ActorSystem system = ActorSystem.Create("ServiceA"))
{
//Actor의 시스템 준비 완료
while (true)
{
// 메인 어플리케이션 종료방지를 위한코드 ( ctrl+x 종료 )
cki = Console.ReadKey(true);
if (cki.Key == ConsoleKey.X) break;
}
}
}
protected static void myHandler(object sender, ConsoleCancelEventArgs args)
{
args.Cancel = true;
}
}
}
|
App.config
.net의 어플리케이션 설정과 호환가능: 특이한 형태의 설정으로 JAVA/AKKA 와 설정컨셉 동일
...