Esempio n. 1
0
 public BindingConditionSetter ToSingleMethod <TConcrete>(string singletonIdentifier, Func <DiContainer, TConcrete> method)
     where TConcrete : TContract
 {
     return(ToProvider(_singletonMap.CreateProviderFromMethod(singletonIdentifier, method)));
 }
Esempio n. 2
0
 public BindingConditionSetter ToSingleMethod <TConcrete>(Func <DiContainer, TConcrete> method, string identifier)
 {
     return(ToProvider(_singletonMap.CreateProviderFromMethod(identifier, method)));
 }
Esempio n. 3
0
 protected BindingConditionSetter ToSingleMethodBase <TConcrete>(string concreteIdentifier, Func <InjectContext, TConcrete> method)
 {
     return(ToProvider(_singletonMap.CreateProviderFromMethod(concreteIdentifier, method)));
 }
Esempio n. 4
0
 public BindingConditionSetter ToSingleMethod <TConcrete>(string concreteIdentifier, Func <InjectContext, TConcrete> method)
     where TConcrete : TContract
 {
     return(ToProvider(_singletonMap.CreateProviderFromMethod(concreteIdentifier, method)));
 }