Akka.Interfaced.SlimServer.ActorBoundChannelBase.UnbindType C# (CSharp) Method

UnbindType() protected method

protected UnbindType ( IActorRef actor, IEnumerable types ) : bool
actor IActorRef
types IEnumerable
return bool
        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;
            }
        }