示例#1
0
        public IContextRegistrationBuilder RegisterType(Type t)
        {
            var registration = new ContextRegistrationBuilder(t);

            _registrations.Add(registration);

            return(registration);
        }
示例#2
0
        public IContextRegistrationBuilder RegisterInstance <T>(T instance) where T : class
        {
            if (instance == null)
            {
                Debug.Log("Trying to register NULL object");
            }
            var registration = new ContextRegistrationBuilder(instance, typeof(T));

            _registrations.Add(registration);

            return(registration);
        }