public StockResponseBackgroundMessageBroker ( IRabbitStockResponse rabbitMessageService, IHubContext <ChatHub> chatHubContext ) { this._chatHubContext = chatHubContext; this._rabbitStockResponse = rabbitMessageService; this._rabbitStockResponse.InitStockQueryResponseEvent(); }
public BackgroundStockQueryService ( IRabbitStockQuery rabbitStockQuery, IRabbitStockResponse rabbitStockResponse, IStooqClient stooqClient ) { this._rabbitStockQuery = rabbitStockQuery; this._rabbitStockResponse = rabbitStockResponse; this._stooqClient = stooqClient; _rabbitStockQuery.InitStockQueryEvent(); }