private void BroadcastInstrumentTradingStatus(Dictionary <InstrumentStatus, List <Guid> > status) { var command = MarketCommandFactory.CreateUpdateInstrumentTradingStatusCommand(status); Logger.InfoFormat("BroadcastInstrumentTradingStatus {0}", command); Broadcaster.Default.AddCommand(command); }
internal void ClientConnectedHanlde(ClientBase client) { _readWriteLock.EnterReadLock(); try { Logger.InfoFormat("client connect, send back instrument trading status command client url = {0}, appType = {1}", client.ServiceUrl, client.AppType); if (!_builder.ExistsStatus()) { return; } client.Send(MarketCommandFactory.CreateUpdateInstrumentTradingStatusCommand(_builder.StatusDict)); } finally { _readWriteLock.ExitReadLock(); } }