예제 #1
0
파일: Program.cs 프로젝트: matej-hron/POC
        static void Main(string[] args)
        {
            var deployers     = new[] { new MonitorDeployer() };
            var configuration = new AkkaConfiguration();
            var akkaService   = new AkkaService(deployers, configuration);
            var monitor       = akkaService.GetActorRef(ReportMonitorActor.Name);

            akkaService.Start(_ => Console.WriteLine("akka start failed"));

            Console.WriteLine("Press enter to request reporting status (x for exit)");
            var input = Console.ReadLine();

            while (input != "x")
            {
                monitor.Tell(new GetStatus(), null);
                input = Console.ReadLine();
            }

            Console.WriteLine("Stopping...");
            akkaService.Stop();
        }
예제 #2
0
 public TransactionController(AkkaService akkaService)
 {
     _akkaService = akkaService;
 }
 public KpiCollection(AkkaService akkaService)
 {
     _akkaService = akkaService;
 }
예제 #4
0
 public AccountController(AkkaService akkaService)
 {
     _akkaService = akkaService;
 }