Exemple #1
0
        protected override void OnConnect()
        {
            Task.Factory.StartNew(() =>
            {
                base.OnConnect();

                Securities.ForEach(s => _adapter.SendOutMessage(s.ToMessage(GetSecurityId(s))));
                Portfolios.ForEach(p => _adapter.SendOutMessage(p.ToMessage()));
            });
        }
 protected override void OnStartExport()
 {
     base.OnStartExport();
     Securities.ForEach(s => _adapter.SendOutMessage(s.ToMessage(GetSecurityId(s))));
     Portfolios.ForEach(p => _adapter.SendOutMessage(p.ToMessage()));
 }