Exemple #1
0
        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 }));
        }
Exemple #2
0
 private void Handle(GetValue.Request message)
 {
     Sender.Tell(new GetValue.Response(value));
 }
Exemple #3
0
        private void Handle(GetValue.Request message)
        {
            var actor = Context.Child(message.CounterId);

            actor.Forward(message);
        }