Пример #1
0
 public static FluTeInstance Bind(this IBindInputConfiguration config, params Func <string, object>[] inputLambdas)
 {
     foreach (var lambda in inputLambdas)
     {
         var name        = lambda.Method.GetParameters().First().Name;
         var localLambda = lambda;
         config = config.Bind(name, localLambda(name));
     }
     return((FluTeInstance)config);
 }
Пример #2
0
 public BindToConfigurator(IBindInputConfiguration innerConfig, string input)
 {
     this.innerConfig = innerConfig;
     this.input       = input;
 }
Пример #3
0
 public static IBindToConfigurator Bind(this IBindInputConfiguration config, string name)
 {
     return(new BindToConfigurator(config, name));
 }