示例#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();
        }
 public TransactionController(AkkaService akkaService)
 {
     _akkaService = akkaService;
 }
 public KpiCollection(AkkaService akkaService)
 {
     _akkaService = akkaService;
 }
示例#4
0
 public AccountController(AkkaService akkaService)
 {
     _akkaService = akkaService;
 }