Esempio n. 1
0
        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;
 }
Esempio n. 4
0
 public AccountController(AkkaService akkaService)
 {
     _akkaService = akkaService;
 }