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