protected bool UnbindType(IActorRef actor, IEnumerable<Type> types)
{
if (_closed)
return false;
lock (_boundActorLock)
{
var actorId = GetBoundActorId(actor);
if (actorId == 0)
return false;
var boundActor = _boundActorMap[actorId];
foreach (var type in types)
{
boundActor.Types.RemoveAll(t => t.Type == type);
}
boundActor.DerivedTypes = GetDerivedBoundTypes(boundActor.Types);
return true;
}
}