Exemplo n.º 1
0
        /// <summary>
        /// Создаёт сервис шлюза.
        /// </summary>
        protected GatewayService()
        {
            Logger   = LogManager.GetLogger(GetType());
            SyncRoot = DeadlockMonitor.Cookie(GetType());

            // Коллективный разум решил, что по умолчанию сообщения должны транслироваться
            SendErrorMessages = true;
        }
Exemplo n.º 2
0
            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();
            }