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

UnbindActor() protected method

protected UnbindActor ( IActorRef actor ) : BoundActor
actor IActorRef
return BoundActor
        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;
        }