Esempio n. 1
0
            private void AddRootRegistration()
            {
                if (_rootInstance is null)
                {
                    _rootInstance = _parent.For <TImpl>().Use <TImpl>();

                    _rootInstance.Lifetime = _lifetime;
                    if (!String.IsNullOrEmpty(_name))
                    {
                        _rootInstance.Named(_name);
                    }
                }
            }