public IContextRegistrationBuilder RegisterType(Type t) { var registration = new ContextRegistrationBuilder(t); _registrations.Add(registration); return(registration); }
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); }