static EmbeddedPipelineBinder() { var infoBinder = new MethodInfoMethodCallBinder <EmbeddedPipelineBindingContext>(); infoBinder.Register(new AllBinder(), AllBinder.GetSupportedMethods()); infoBinder.Register(new AnyBinder(), AnyBinder.GetSupportedMethods()); infoBinder.Register(new AverageBinder(), AverageBinder.GetSupportedMethods()); infoBinder.Register(new DistinctBinder(), DistinctBinder.GetSupportedMethods()); infoBinder.Register(new ExceptBinder(), ExceptBinder.GetSupportedMethods()); infoBinder.Register(new FirstBinder(), FirstBinder.GetSupportedMethods()); infoBinder.Register(new IntersectBinder(), IntersectBinder.GetSupportedMethods()); infoBinder.Register(new LastBinder(), LastBinder.GetSupportedMethods()); infoBinder.Register(new MaxBinder(), MaxBinder.GetSupportedMethods()); infoBinder.Register(new MinBinder(), MinBinder.GetSupportedMethods()); infoBinder.Register(new SelectBinder(), SelectBinder.GetSupportedMethods()); infoBinder.Register(new SumBinder(), SumBinder.GetSupportedMethods()); infoBinder.Register(new ToArrayBinder(), ToArrayBinder.GetSupportedMethods()); infoBinder.Register(new ToHashSetBinder(), ToHashSetBinder.GetSupportedMethods()); infoBinder.Register(new ToListBinder(), ToListBinder.GetSupportedMethods()); infoBinder.Register(new UnionBinder(), UnionBinder.GetSupportedMethods()); infoBinder.Register(new WhereBinder(), WhereBinder.GetSupportedMethods()); var nameBinder = new NameBasedMethodCallBinder <EmbeddedPipelineBindingContext>(); nameBinder.Register(new ContainsBinder(), ContainsBinder.IsSupported, ContainsBinder.SupportedMethodNames); nameBinder.Register(new CountBinder(), CountBinder.IsSupported, CountBinder.SupportedMethodNames); __methodCallBinder = new CompositeMethodCallBinder <EmbeddedPipelineBindingContext>( infoBinder, nameBinder); }
static EmbeddedPipelineBinder() { var infoBinder = new MethodInfoMethodCallBinder <EmbeddedPipelineBindingContext>(); infoBinder.Register(new AggregateBinder(), AggregateBinder.GetSupportedMethods()); infoBinder.Register(new AllBinder(), AllBinder.GetSupportedMethods()); infoBinder.Register(new AnyBinder(), AnyBinder.GetSupportedMethods()); infoBinder.Register(new AsQueryableBinder(), AsQueryableBinder.GetSupportedMethods()); infoBinder.Register(new AverageBinder(), AverageBinder.GetSupportedMethods()); infoBinder.Register(new ConcatBinder(), ConcatBinder.GetSupportedMethods()); infoBinder.Register(new DefaultIfEmptyBinder(), DefaultIfEmptyBinder.GetSupportedMethods()); infoBinder.Register(new DistinctBinder(), DistinctBinder.GetSupportedMethods()); infoBinder.Register(new ExceptBinder(), ExceptBinder.GetSupportedMethods()); infoBinder.Register(new FirstBinder(), FirstBinder.GetSupportedMethods()); infoBinder.Register(new IntersectBinder(), IntersectBinder.GetSupportedMethods()); infoBinder.Register(new LastBinder(), LastBinder.GetSupportedMethods()); infoBinder.Register(new MaxBinder(), MaxBinder.GetSupportedMethods()); infoBinder.Register(new MinBinder(), MinBinder.GetSupportedMethods()); infoBinder.Register(new OfTypeBinder(), OfTypeBinder.GetSupportedMethods()); infoBinder.Register(new ReverseBinder(), ReverseBinder.GetSupportedMethods()); infoBinder.Register(new SelectBinder(), SelectBinder.GetSupportedMethods()); infoBinder.Register(new SkipBinder(), SkipBinder.GetSupportedMethods()); infoBinder.Register(new StandardDeviationBinder(), StandardDeviationBinder.GetSupportedMethods()); infoBinder.Register(new SumBinder(), SumBinder.GetSupportedMethods()); infoBinder.Register(new TakeBinder(), TakeBinder.GetSupportedMethods()); infoBinder.Register(new ToArrayBinder(), ToArrayBinder.GetSupportedMethods()); infoBinder.Register(new ToHashSetBinder(), ToHashSetBinder.GetSupportedMethods()); infoBinder.Register(new ToListBinder(), ToListBinder.GetSupportedMethods()); infoBinder.Register(new UnionBinder(), UnionBinder.GetSupportedMethods()); infoBinder.Register(new WhereBinder(), WhereBinder.GetSupportedMethods()); infoBinder.Register(new ZipBinder(), ZipBinder.GetSupportedMethods()); var nameBinder = new NameBasedMethodCallBinder <EmbeddedPipelineBindingContext>(); nameBinder.Register(new ContainsBinder(), ContainsBinder.IsSupported, ContainsBinder.SupportedMethodNames); nameBinder.Register(new CountBinder(), CountBinder.IsSupported, CountBinder.SupportedMethodNames); __methodCallBinder = new CompositeMethodCallBinder <EmbeddedPipelineBindingContext>( infoBinder, nameBinder); }