コード例 #1
0
 private static IMessageProducer <ExternalExchangeOrderbookMessage> CreateRabbitMqMessageProducer(
     IReloadingManager <MarginTradingOrderbookAggregatorSettings> settings, IRabbitMqService rabbitMqService)
 {
     return(rabbitMqService.GetProducer(settings.Nested(s => s.RabbitMq.Publishers.Orderbooks), true,
                                        rabbitMqService.GetMsgPackSerializer <ExternalExchangeOrderbookMessage>()));
 }