| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- //using Muchinfo.MTPClient.Data.Enums;
- //using Muchinfo.MTPClient.Infrastructure.Cache;
- //using Muchinfo.MTPClient.Infrastructure.EntityHelpers;
- //using Muchinfo.MTPClient.Infrastructure.LinkProxy;
- //using Muchinfo.MTPClient.Infrastructure.Utilities;
- //using System.Linq;
- //namespace Muchinfo.MTPClient.Service
- //{
- // public class QuoteService
- // {
- // /// <summary>
- // /// The _instance
- // /// </summary>
- // private static readonly QuoteService _instance = new QuoteService();
- // /// <summary>
- // /// 单例
- // /// </summary>
- // /// <value>The intance.</value>
- // public static QuoteService Instance
- // {
- // get { return _instance; }
- // }
- // #region Constructors
- // /// <summary>
- // /// Prevents a default instance of the <see cref="QuoteService"/> class from being created.
- // /// </summary>
- // private QuoteService()
- // {
- // ApplicationParameter.QuotationMessenger.Register<bool>(this, MessengerTokens.QuoteServerConnectMsg, (state) =>
- // {
- // if (state)
- // {
- // QuoteSubscribe();//重连后再发订阅
- // }
- // });
- // }
- // #endregion Constructors
- // #region Methods
- // #region Public Static Methods
- // /// <summary>
- // /// 订阅行情
- // /// </summary>
- // public void QuoteSubscribe()
- // {
- // var client = LinkManager.Instance.QuoteTcpLinkProxy;
- // if (client == null) return;
- // var goodsList = CacheManager.CacheGoodsBaseInfos;
- // if (null != goodsList && goodsList.Any())
- // {
- // var symbolsArray = goodsList.ToQuoteDatagramString();
- // if (symbolsArray.Length > 0)
- // {
- // client.Subscribe(goodsList);
- // }
- // }
- // //if (dicGoodsSort != null)
- // //{
- // // foreach (var qouteGoods in CacheManager.CacheGoodsBaseInfos) //设置商品组
- // // {
- // // if (dicGoodsSort.ContainsKey(qouteGoods.Symbol.ToUpper()))
- // // {
- // // qouteGoods.Sort = dicGoodsSort[qouteGoods.Symbol];
- // // }
- // // }
- // //}
- // }
- // #endregion Public Static Methods
- // #endregion Methods
- // }
- //}
|