protected BoundActor UnbindActor(IActorRef actor)
{
lock (_boundActorLock)
{
int actorId;
if (_boundActorInverseMap.TryGetValue(actor, out actorId))
{
var boundActor = _boundActorMap[actorId];
_boundActorMap.Remove(actorId);
_boundActorInverseMap.Remove(actor);
if (_closed == false)
Context.Unwatch(actor);
return boundActor;
}
}
return null;
}