예제 #1
0
파일: FutureForm.cs 프로젝트: zedjia/Ber
        private void RequestHandler_NotifyOrderData(List <TradeDepthsEntity> list, tradeInfo tradeInfo)
        {
            try
            {
                if (list == null || !list.Any())
                {
                    return;
                }

                DapperDbContext context = new DapperDbContext(CurrentConfig.ConnectionString);
                context.InsertTradeDetailsDataAsync(list);
                //context.InsertTradeInfoAsync(tradeInfo);
                context.InsertTradeInfo(tradeInfo);
                //Task.WaitAll(t1, t2);
            }
            catch (Exception e)
            {
                logPrint(string.Format("{0}-{1}", "RequestHandler_NotifyOrderData", e.Message));
            }

            //BTMrefreshSign = true;
        }