Ejemplo n.º 1
0
        public async Task <ActionResult <Student> > Get(int id)
        {
            var props = Props.Create(() => new ConnectionActor(AkkaService.CClientSettings));
            var actor = AkkaService.ActorSys.ActorOf(props);

            var result = await actor.Ask <GetResult>(new Get(id));

            var student = StudentDto.FromWierdAkkaJson(result.Json);

            return(Ok(student));

            // return _students.Find(x => x.Id == id);
        }