コード例 #1
0
            /// <summary>
            /// 初始化回调结构
            /// </summary>
            void InitCallbackList()
            {
                callbackStruct = new EsunnyTradeSpiCallbackStruct();

                callbackStruct.OpenCallback  = new OpenCallback(this.OnOpen);
                callbackStruct.CloseCallback = new CloseCallback(this.OnClose);

                callbackStruct.LoginCallback   = new LoginCallback(this.OnLogin);
                callbackStruct.SetPassCallback = new SetPassCallback(this.OnSetPass);

                callbackStruct.QueryMoneyCallback  = new QueryMoneyCallback(this.OnQueryMoney);
                callbackStruct.ReturnMoneyCallback = new ReturnMoneyCallback(this.OnReturnMoney);

                callbackStruct.QueryOrderCallback  = new QueryOrderCallback(this.OnQueryOrder);
                callbackStruct.ReturnOrderCallback = new ReturnOrderCallback(this.OnReturnOrder);

                callbackStruct.QueryMatchCallback  = new QueryMatchCallback(this.OnQueryMatch);
                callbackStruct.ReturnMatchCallback = new ReturnMatchCallback(this.OnReturnMatch);

                callbackStruct.QueryHoldCallback  = new QueryHoldCallback(this.OnQueryHold);
                callbackStruct.ReturnHoldCallback = new ReturnHoldCallback(this.OnReturnHold);

                callbackStruct.QueryExchangeStateCallback  = new QueryExchangeStateCallback(this.OnQueryExchangeState);
                callbackStruct.ReturnExchangeStateCallback = new ReturnExchangeStateCallback(this.OnReturnExchangeState);

                callbackStruct.QueryCommodityCallback   = new QueryCommodityCallback(this.OnQueryCommodity);
                callbackStruct.QueryContractCallback    = new QueryContractCallback(this.OnQueryContract);
                callbackStruct.QueryCmbContractCallback = new QueryCmbContractCallback(this.OnQueryCmbContract);

                callbackStruct.QueryClientCallback = new QueryClientCallback(this.OnQueryClient);

                callbackStruct.QueryBankClientCallback = new QueryBankClientCallback(this.OnQueryBankClient);
                callbackStruct.QueryBankCashCallback   = new QueryBankCashCallback(this.OnQueryBankCash);
                callbackStruct.ReturnBankCashCallback  = new ReturnBankCashCallback(this.OnReturnBankCash);
            }
コード例 #2
0
            /// <summary>
            /// 初始化回调结构
            /// </summary>
            void InitCallbackList()
            {
                callbackStruct = new EsunnyTradeSpiCallbackStruct();

                callbackStruct.OpenCallback = new OpenCallback(this.OnOpen);
                callbackStruct.CloseCallback = new CloseCallback(this.OnClose);

                callbackStruct.LoginCallback = new LoginCallback(this.OnLogin);
                callbackStruct.SetPassCallback = new SetPassCallback(this.OnSetPass);

                callbackStruct.QueryMoneyCallback = new QueryMoneyCallback(this.OnQueryMoney);
                callbackStruct.ReturnMoneyCallback = new ReturnMoneyCallback(this.OnReturnMoney);

                callbackStruct.QueryOrderCallback = new QueryOrderCallback(this.OnQueryOrder);
                callbackStruct.ReturnOrderCallback = new ReturnOrderCallback(this.OnReturnOrder);

                callbackStruct.QueryMatchCallback = new QueryMatchCallback(this.OnQueryMatch);
                callbackStruct.ReturnMatchCallback = new ReturnMatchCallback(this.OnReturnMatch);

                callbackStruct.QueryHoldCallback = new QueryHoldCallback(this.OnQueryHold);
                callbackStruct.ReturnHoldCallback = new ReturnHoldCallback(this.OnReturnHold);

                callbackStruct.QueryExchangeStateCallback = new QueryExchangeStateCallback(this.OnQueryExchangeState);
                callbackStruct.ReturnExchangeStateCallback = new ReturnExchangeStateCallback(this.OnReturnExchangeState);

                callbackStruct.QueryCommodityCallback = new QueryCommodityCallback(this.OnQueryCommodity);
                callbackStruct.QueryContractCallback = new QueryContractCallback(this.OnQueryContract);
                callbackStruct.QueryCmbContractCallback = new QueryCmbContractCallback(this.OnQueryCmbContract);

                callbackStruct.QueryClientCallback = new QueryClientCallback(this.OnQueryClient);

                callbackStruct.QueryBankClientCallback = new QueryBankClientCallback(this.OnQueryBankClient);
                callbackStruct.QueryBankCashCallback = new QueryBankCashCallback(this.OnQueryBankCash);
                callbackStruct.ReturnBankCashCallback = new ReturnBankCashCallback(this.OnReturnBankCash);
            }