public QueueController() { int numProcs = Environment.ProcessorCount; int concurrencyLevel = numProcs * 2; int initialCapacity = 5; MQ = new ConcurrentDictionary <string, MQueue>(concurrencyLevel, initialCapacity); m_TransDispatcher = new TransactionDispatcher(); }
public SessionController() { int numProcs = Environment.ProcessorCount; int concurrencyLevel = numProcs * 2; int initialCapacity = 5; MQ = new ConcurrentDictionary <string, MQueue>(concurrencyLevel, initialCapacity); m_TransDispatcher = new TransactionDispatcher(); //m_TransDispatcher.SyncItemCompleted += new SyncItemEventHandler<TransactionItem>(m_TransDispatcher_SyncCompleted); }
public CQGCRouter(CQGCAdapter adapter, CQGCInstrumentResolver instrumentResolver) { this.adapter = adapter; this.instrumentResolver = instrumentResolver; dispatcher = new TransactionDispatcher(this); this.adapter.AccountResolved += AccountResolved; this.adapter.PositionStatusReceived += PositionStatusReceived; this.adapter.TradeSnapshotCompletionReceived += TradeSnapshotCompletionReceived; this.adapter.TradeSubscriptionStatusReceived += TradeSubscriptionStatusReceived; this.adapter.OrderStatusReceived += OrderStatusReceived; this.adapter.CollateralStatusReceived += CollateralStatusReceived; this.adapter.OrderRequestRejectReceived += OrderRequestRejectReceived; instrumentResolver.InstrumentResolved += InstrumentResolved; }