Esempio n. 1
0
 public virtual TObject CreateWithBindings <T1, T2, T3>(T1 param1, T2 param2, T3 param3)
 {
     _kernel.Bind <T1>().ToConstant(param1);
     _kernel.Bind <T2>().ToConstant(param2);
     _kernel.Bind <T3>().ToConstant(param3);
     return(Uti.CreateWithParams <TObject>(_kernel));
 }
Esempio n. 2
0
        public IObjectRoot <TObject> CreateWithParams(params object[] parameters)
        {
            IKernel childKernel = CreateChildKernel();
            var     obj         = Uti.CreateWithParams <TObject>(childKernel, parameters);

            return(new ObjectRoot <TObject>(childKernel, obj));
        }
Esempio n. 3
0
 public virtual TObject CreateWithParams(params object[] parameters)
 {
     return(Uti.CreateWithParams <TObject>(_kernel, parameters));
 }
Esempio n. 4
0
 public virtual TObject CreateWithBindings <T1>(T1 param1)
 {
     _kernel.Bind <T1>().ToConstant(param1);
     return(Uti.CreateWithParams <TObject>(_kernel));
 }