public async Task <HttpResponseMessage> Get(string counterId) { var request = new GetValue.Request(counterId); var response = await ActorsEnvironment.Gateway.Ask <GetValue.Response>(request); return(Request.CreateResponse(HttpStatusCode.OK, new { value = response.Value })); }
private void Handle(GetValue.Request message) { Sender.Tell(new GetValue.Response(value)); }
private void Handle(GetValue.Request message) { var actor = Context.Child(message.CounterId); actor.Forward(message); }