Ejemplo n.º 1
0
        Func <object>?Build(object?key, Type type)
        {
            var buildContext = new BuildContext(this);
            var registration = buildContext.ResolveNeedBy(type, key);

            return(registration != null?BuildFromRegistration(registration, buildContext) : null);
        }
Ejemplo n.º 2
0
        Func <object> Build(object key, Type type)
        {
            var buildContext = new BuildContext(this);
            var registration = buildContext.ResolveNeedBy(type, key);

            if (registration != null)
            {
                return(BuildFromRegistration(registration, buildContext));
            }
            return(null);
        }
Ejemplo n.º 3
0
 Func<object> Build(object key, Type type)
 {
     var buildContext = new BuildContext(this);
     var registration = buildContext.ResolveNeedBy(type, key);
     if (registration != null)
     {
         return BuildFromRegistration(registration, buildContext);
     }
     return null;
 }