public virtual void Register(Type component)
        {
            if (component == null)
            {
                throw new ArgumentNullException();
            }

            Register(ComponentContextUtils.GetComponentDefaultName(component), ComponentContextUtils.CreateLocalFactory(component));
        }
 public virtual void Register(Type contract, Type component)
 {
     Register(contract, ComponentContextUtils.GetComponentDefaultName(component), component);
 }