Esempio n. 1
0
 public IInstanceProviderOptions ToType <T>() where T : new()
 {
     InstanceProvider = _InstanceProviderList.AddTypedProvider <T>(BindingType);
     return(InstanceProvider);
 }
Esempio n. 2
0
 public IInjectionBindingOptions ToType <TProvider>()
     where TProvider : TBinding, new()
 {
     InstanceProvider = _instanceProviderList.AddTypedProvider <TProvider>(BindingType);
     return(this);
 }