コード例 #1
0
 public InstantiateCallbackConditionCopyNonLazyBinder WithArguments <TParam1, TParam2, TParam3, TParam4, TParam5, TParam6>(
     TParam1 param1, TParam2 param2, TParam3 param3, TParam4 param4, TParam5 param5, TParam6 param6)
 {
     BindInfo.Arguments = InjectUtil.CreateArgListExplicit(param1, param2, param3, param4, param5, param6);
     return(this);
 }
コード例 #2
0
 public InstantiateCallbackConditionCopyNonLazyBinder WithArguments(object[] args)
 {
     BindInfo.Arguments = InjectUtil.CreateArgList(args);
     return(this);
 }
 public FactoryToChoiceBinder <TContract> WithFactoryArguments(object[] args)
 {
     FactoryBindInfo.Arguments = InjectUtil.CreateArgList(args);
     return(this);
 }
コード例 #4
0
 // We use generics instead of params object[] so that we preserve type info
 // So that you can for example pass in a variable that is null and the type info will
 // still be used to map null on to the correct field
 public InstantiateCallbackConditionCopyNonLazyBinder WithArguments <T>(T param)
 {
     BindInfo.Arguments = InjectUtil.CreateArgListExplicit(param);
     return(this);
 }
 public FactoryToChoiceBinder <TContract> WithFactoryArguments <TParam1, TParam2>(TParam1 param1, TParam2 param2)
 {
     FactoryBindInfo.Arguments = InjectUtil.CreateArgListExplicit(param1, param2);
     return(this);
 }
 public FactoryToChoiceBinder <TContract> WithFactoryArguments <TParam1, TParam2, TParam3, TParam4, TParam5, TParam6>(
     TParam1 param1, TParam2 param2, TParam3 param3, TParam4 param4, TParam5 param5, TParam6 param6)
 {
     FactoryBindInfo.Arguments = InjectUtil.CreateArgListExplicit(param1, param2, param3, param4, param5, param6);
     return(this);
 }
コード例 #7
0
 public ConditionCopyNonLazyBinder WithArguments <TParam1, TParam2, TParam3, TParam4, TParam5>(
     TParam1 param1, TParam2 param2, TParam3 param3, TParam4 param4, TParam5 param5)
 {
     BindInfo.Arguments = InjectUtil.CreateArgListExplicit(param1, param2, param3, param4, param5);
     return(this);
 }
コード例 #8
0
 // We use generics instead of params object[] so that we preserve type info
 // So that you can for example pass in a variable that is null and the type info will
 // still be used to map null on to the correct field
 public FactoryToChoiceBinder <TParam1, TParam2, TParam3, TParam4, TParam5, TContract> WithFactoryArguments <T>(T param)
 {
     FactoryBindInfo.Arguments = InjectUtil.CreateArgListExplicit(param);
     return(this);
 }
コード例 #9
0
                               TParam10, TContract> WithFactoryArguments(object[] args)
 {
     FactoryBindInfo.Arguments = InjectUtil.CreateArgList(args);
     return(this);
 }
コード例 #10
0
                               TParam10, TContract> WithFactoryArguments <TFactoryParam1, TFactoryParam2, TFactoryParam3, TFactoryParam4>(
     TFactoryParam1 param1, TFactoryParam2 param2, TFactoryParam3 param3, TFactoryParam4 param4)
 {
     FactoryBindInfo.Arguments = InjectUtil.CreateArgListExplicit(param1, param2, param3, param4);
     return(this);
 }
コード例 #11
0
                               TParam10, TContract> WithFactoryArguments <T>(T param)
 {
     FactoryBindInfo.Arguments = InjectUtil.CreateArgListExplicit(param);
     return(this);
 }