コード例 #1
0
ファイル: GatewayService.cs プロジェクト: ralex1975/Polygon
        /// <summary>
        /// Создаёт сервис шлюза.
        /// </summary>
        protected GatewayService()
        {
            Logger   = LogManager.GetLogger(GetType());
            SyncRoot = DeadlockMonitor.Cookie(GetType());

            // Коллективный разум решил, что по умолчанию сообщения должны транслироваться
            SendErrorMessages = true;
        }
コード例 #2
0
ファイル: CQGCFeed.cs プロジェクト: Alan-Baylis/Polygon
            public InstrumentSubscription(
                CQGCInstrumentResolver instrumentResolver,
                Instrument instrument,
                uint contractId)
            {
                this.instrumentResolver = instrumentResolver;
                Instrument = instrument;
                lockCookie = DeadlockMonitor.Cookie <InstrumentSubscription>("lockCookie-" + ContractId);
                ContractId = contractId;

                InstrumentParams = new InstrumentParams {
                    Instrument = instrument
                };
                InstrumentParams.VolaTranslatedByFeed = false;
                OrderBook = new OrderBook();
            }