protected int GetBoundActorId(IActorRef actor) { lock (_boundActorLock) { int actorId; return _boundActorInverseMap.TryGetValue(actor, out actorId) ? actorId : 0; } }