public CallReceiveWhenHandlingMessageActor() { Receive<object>(m => { try { Receive<int>(i => Sender.Tell(i, Self)); Sender.Tell(null, Self); } catch(Exception e) { Sender.Tell(e, Self); } }); } }