public ActorResource AddChild(string name,string fullName,string group)
        {
            if (_children.ContainsKey(name))
                return _children[name];

            var child = new ActorResource(name,fullName, group);
            _children.Add(name, child);
            return child;
        }
Example #2
0
        public ActorResource AddChild(string name, string fullName, string group)
        {
            if (_children.ContainsKey(name))
            {
                return(_children[name]);
            }

            var child = new ActorResource(name, fullName, group);

            _children.Add(name, child);
            return(child);
        }
Example #3
0
        private void ReportActor(ActorIdentity id)
        {
            var path = id.Subject.Path;

            ActorResource current = _root;

            current = current.AddChild(path.Address.System, "System:" + path.Address.System, path.Address.Host);
            current = current.AddChild("Node:" + path.Address.Port, "Port:" + path.Address.Port, path.Address.Port.ToString());
            foreach (var e in path.Elements)
            {
                current = current.AddChild(e, current.FullName + "/" + e, path.Address.Port.ToString());
            }


            _log.Info("Actor found : {IdentifiedActor}", id.Subject);
        }