public HotSwapWithBecome() { Receive<string>(m => "init".Equals(m), (m) => Sender.Tell("init")); Receive<string>(m => "swap".Equals(m), (m) => { Become(() => Receive<string>(x => Sender.Tell(x))); }); } }