Example #1
0
        private void DisposeHandlers()
        {
            var vertices = TopologicalSortAlgo.Sort(GraphNodes);

            for (var i = 0; i < vertices.Length; i++)
            {
                var model   = (ComponentModel)vertices[i];
                var handler = NamingSubSystem.GetHandler(model.Name);
                DisposeHandler(handler);
            }
        }
Example #2
0
        public virtual IHandler GetHandler(Type service)
        {
            if (service == null)
            {
                throw new ArgumentNullException("service");
            }

            IHandler handler = NamingSubSystem.GetHandler(service);

            if (handler == null && Parent != null)
            {
                handler = Parent.GetHandler(service);
            }

            return(handler);
        }
Example #3
0
        public virtual IHandler GetHandler(String key)
        {
            if (key == null)
            {
                throw new ArgumentNullException("key");
            }

            IHandler handler = NamingSubSystem.GetHandler(key);

            if (handler == null && Parent != null)
            {
                handler = Parent.GetHandler(key);
            }

            return(handler);
        }
Example #4
0
        public virtual IHandler GetHandler(string name)
        {
            if (name == null)
            {
                throw new ArgumentNullException(nameof(name));
            }

            var handler = NamingSubSystem.GetHandler(name);

            if (handler == null && Parent != null)
            {
                handler = WrapParentHandler(Parent.GetHandler(name));
            }

            return(handler);
        }