private SpotTradeRulesProxy()
        {
            //minChangeObj =
            //    new WCFCacheObjectWithGetAllNoKey<XH_MinChangePriceValue>(GetAllMinChangePriceValueFromWCF);

            //minChangeObjByBreedClassID =
            //    new WCFCacheObjectWithGetKey<int, IList<XH_MinChangePriceValue>>(
            //        GetMinChangePriceValueByBreedClassIDFromWCF);

            minVolumeByBreedClassIDObj =
                new WCFCacheObjectWithGetKey <int, IList <XH_MinVolumeOfBusiness> >(
                    GetMinVolumeOfBusinessByBreedClassIDFromWCF);

            minVolumeObj =
                new WCFCacheObjectWithGetAllNoKey <XH_MinVolumeOfBusiness>(GetAllMinVolumeOfBusinessFromWCF);

            //rightHighLowPricesByHightLowIDObj =
            //    new WCFCacheObjectWithGetKey<int, IList<XH_RightHightLowPrices>>(
            //        GetRightHighLowPricesByHightLowIDFromWCF);

            //rightHightLowPricesObj =
            //    new WCFCacheObjectWithGetAllNoKey<XH_RightHightLowPrices>(GetAllRightHighLowPricesFromWCF);

            spotCostsObj =
                new WCFCacheObject <int, XH_SpotCosts>(GetAllSpotCostsFromWCF, GetSpotCostsByBreedClassIDFromWCF,
                                                       val => val.BreedClassID);

            spotHighLowControlTypeObj =
                new WCFCacheObjectWithGetAll <int, XH_SpotHighLowControlType>(GetAllSpotHighLowControlTypeFromWCF,
                                                                              val => val.BreedClassHighLowID);

            spotHighLowValueByBreedClassHighLowIDObj =
                new WCFCacheObjectWithGetKey <int, IList <XH_SpotHighLowValue> >(
                    GetSpotHighLowValueByBreedClassHighLowIDFromWCF);

            spotHighLowValueObj =
                new WCFCacheObject <int, XH_SpotHighLowValue>(GetAllSpotHighLowValueFromWCF,
                                                              GetSpotHighLowByHightLowValueIDFromWCF,
                                                              val => val.HightLowValueID);

            spotPositionObj =
                new WCFCacheObject <int, XH_SpotPosition>(GetAllSpotPositionFromWCF, GetSpotPositionByBreedClassIDFromWCF,
                                                          Val => Val.BreedClassID);

            //spotRangCostObj =
            //    new WCFCacheObjectWithGetAllNoKey<XH_SpotRangeCost>(GetAllSpotRangeCostFromWCF);

            //spotRangeCostByBreedClassID =
            //    new WCFCacheObjectWithGetKey<int, IList<XH_SpotRangeCost>>(GetSpotRangeCostByBreedClassIDFromWCF);

            spotTradeRulesObj =
                new WCFCacheObject <int, XH_SpotTradeRules>(GetAllSpotTradeRulesFromWCF,
                                                            GetSpotTradeRulesByBreedClassIDFromWCF,
                                                            val => val.BreedClassID);

            validDeclareTypeObj =
                new WCFCacheObject <int, XH_ValidDeclareType>(GetAllValidDeclareTypeFromWCF,
                                                              GetValidDeclareTypeByBreedClassValidIDFromWCF,
                                                              val => val.BreedClassValidID);
        }
Пример #2
0
        private FuturesTradeRulesProxy()
        {
            agreementDeliveryMonthByBreedClassIDObj
                =
                    new WCFCacheObjectWithGetKey <int, IList <QH_AgreementDeliveryMonth> >(
                        GetAgreementDeliveryMonthByBreedClassIDFromWCF);

            agreementDeliveryMonthObj =
                new WCFCacheObjectWithGetAll <int, QH_AgreementDeliveryMonth>(GetAllAgreementDeliveryMonthFromWCF,
                                                                              val => val.AgreementDeliveryMonthID);

            allCFPostionMonthObj =
                new WCFCacheObjectWithGetAll <int, QH_CFPositionMonth>(GetAllCFPostionMonthFromWCF,
                                                                       val => val.DeliveryMonthTypeID);

            allConsionInstructionTypeObj =
                new WCFCacheObjectWithGetAll <int, QH_ConsignInstructionType>(GetAllConsionInstructionTypeFromWCF,
                                                                              val => val.ConsignInstructionTypeID);

            allPositionBailTypeObj =
                new WCFCacheObjectWithGetAll <int, QH_PositionBailType>(GetAllPositionBailTypeFromWCF,
                                                                        val => val.PositionBailTypeID);

            allQHPositionLimitValueObj =
                new WCFCacheObjectWithGetAll <int, QH_PositionLimitValue>(GetAllQHPositionLimitValueFromWCF,
                                                                          val => val.PositionLimitValueID);

            cFBailScaleValueByBreedClassIDObj =
                new WCFCacheObjectWithGetKey <int, IList <QH_CFBailScaleValue> >(GetCFBailScaleValueByBreedClassIDFromWCF);

            cFBailScaleValueObj =
                new WCFCacheObjectWithGetAll <int, QH_CFBailScaleValue>(GetAllCFBailScaleValueFromWCF,
                                                                        val => val.CFBailScaleValueID);

            consignQuantumObj =
                new WCFCacheObjectWithGetAll <int, QH_ConsignQuantum>(GetAllConsignQuantumFromWCF,
                                                                      val => val.ConsignQuantumID);

            futureCostsObj =
                new WCFCacheObjectWithGetAll <int, QH_FutureCosts>(GetAllFutureCostsFromWCF, val => val.BreedClassID);

            futureTradeRulsObj =
                new WCFCacheObjectWithGetAll <int, QH_FuturesTradeRules>(GetAllFuturesTradeRulesFromWCF,
                                                                         val => val.BreedClassID);

            highLowStopScopeTypeObj =
                new WCFCacheObjectWithGetAll <int, QH_HighLowStopScopeType>(GetAllHighLowStopScopeTypeFromWCF,
                                                                            val => val.HighLowStopScopeID);

            lastTradingDayObj =
                new WCFCacheObjectWithGetAll <int, QH_LastTradingDay>(GetAllLastTradingDayFromWCF,
                                                                      val => val.LastTradingDayID);

            lastTradingDayTypeObj =
                new WCFCacheObjectWithGetAll <int, QH_LastTradingDayType>(GetAllLastTradingDayTypeFromWCF,
                                                                          val => val.LastTradingDayTypeID);

            monthObj =
                new WCFCacheObjectWithGetAll <int, QH_Month>(GetAllMonthFromWCF, val => val.MonthID);

            positionLimitValueByBreedClassIDObj =
                new WCFCacheObjectWithGetKey <int, IList <QH_PositionLimitValue> >(
                    GetPositionLimitValueByBreedClassIDFromWCF);

            sifBailObj =
                new WCFCacheObjectWithGetAll <int, QH_SIFBail>(GetAllSIFBailFromWCF, val => val.BreedClassID);

            sifPositionObj =
                new WCFCacheObjectWithGetAll <int, QH_SIFPosition>(GetAllSIFPositionFromWCF, val => val.BreedClassID);


            singleRequestQuantityByConsignQuantumIDObj =
                new WCFCacheObjectWithGetKey <int, IList <QH_SingleRequestQuantity> >(
                    GetSingleRequestQuantityByConsignQuantumIDFromWCF);

            singleRequestQuantityObj =
                new WCFCacheObjectWithGetAll <int, QH_SingleRequestQuantity>(GetAllSingleRequestQuantityFromWCF,
                                                                             val => val.SingleRequestQuantityID);
        }