private void HandlePostAck(PostAck x)
        {
            Console.WriteLine("Post " + x.Id + " saved!");

            notAck[x.Id].Item2.Cancel();
            notAck.Remove(x.Id);
        }
        private void HandlePostSavedAck(PostSaved saved)
        {
            var tuple = notAck[saved.Key];

            var ack = new PostAck(tuple.Item2.Id);

            Context.ActorSelection(tuple.Item1).Tell(ack);

            notAck.Remove(saved.Key);
        }
 private void HandlePostAck(PostAck x)
 {
     Console.WriteLine("Post " + x.Id + " saved!");
 }
Пример #4
0
        private void HandlePostSavedAck(PostSaved saved)
        {
            var ack = new PostAck(saved.Id);

            Context.ActorSelection(saved.From).Tell(ack);
        }