Example #1
0
 static PipelineBinder()
 {
     __methodCallBinder = new MethodInfoMethodCallBinder <PipelineBindingContext>();
     __methodCallBinder.Register(new AnyBinder(), AnyBinder.GetSupportedMethods());
     __methodCallBinder.Register(new AverageBinder(), AverageBinder.GetSupportedMethods());
     __methodCallBinder.Register(new CountBinder(), CountBinder.GetSupportedMethods());
     __methodCallBinder.Register(new DistinctBinder(), DistinctBinder.GetSupportedMethods());
     __methodCallBinder.Register(new FirstBinder(), FirstBinder.GetSupportedMethods());
     __methodCallBinder.Register(new GroupByBinder(), GroupByBinder.GetSupportedMethods());
     __methodCallBinder.Register(new GroupByWithResultSelectorBinder(), GroupByWithResultSelectorBinder.GetSupportedMethods());
     __methodCallBinder.Register(new JoinBinder(), JoinBinder.GetSupportedMethods());
     __methodCallBinder.Register(new MaxBinder(), MaxBinder.GetSupportedMethods());
     __methodCallBinder.Register(new MinBinder(), MinBinder.GetSupportedMethods());
     __methodCallBinder.Register(new OfTypeBinder(), OfTypeBinder.GetSupportedMethods());
     __methodCallBinder.Register(new OrderByBinder(), OrderByBinder.GetSupportedMethods());
     __methodCallBinder.Register(new SampleBinder(), SampleBinder.GetSupportedMethods());
     __methodCallBinder.Register(new SelectBinder(), SelectBinder.GetSupportedMethods());
     __methodCallBinder.Register(new SelectManyBinder(), SelectManyBinder.GetSupportedMethods());
     __methodCallBinder.Register(new SingleBinder(), SingleBinder.GetSupportedMethods());
     __methodCallBinder.Register(new SkipBinder(), SkipBinder.GetSupportedMethods());
     __methodCallBinder.Register(new StandardDeviationPopulationBinder(), StandardDeviationPopulationBinder.GetSupportedMethods());
     __methodCallBinder.Register(new StandardDeviationSampleBinder(), StandardDeviationSampleBinder.GetSupportedMethods());
     __methodCallBinder.Register(new SumBinder(), SumBinder.GetSupportedMethods());
     __methodCallBinder.Register(new TakeBinder(), TakeBinder.GetSupportedMethods());
     __methodCallBinder.Register(new ThenByBinder(), ThenByBinder.GetSupportedMethods());
     __methodCallBinder.Register(new WhereBinder(), WhereBinder.GetSupportedMethods());
 }
Example #2
0
        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);
        }
Example #3
0
        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);
        }