Exemplo n.º 1
0
 public InstrumentsService(
     IInstrumentsAccessService instrumentsAccessService,
     IPricesGenerator pricesGenerator)
 {
     _instrumentsAccessService = instrumentsAccessService;
     _pricesGenerator          = pricesGenerator;
 }
Exemplo n.º 2
0
 public ShutdownManager(
     IEnumerable <OrderBookSubscriber> orderBookSubscribers,
     IPricesGenerator pricesGenerator,
     OrdersProcessorTimer ordersProcessorTimer, IPricesPublisher pricesPublisher)
 {
     _orderBookSubscribers = orderBookSubscribers;
     _pricesGenerator      = pricesGenerator;
     _ordersProcessorTimer = ordersProcessorTimer;
     _pricesPublisher      = pricesPublisher;
 }
Exemplo n.º 3
0
 public OperationsController(IResourceService resourceService, IUserResourcesService userResourcesService,
                             IDealService dealService, IHubContext hubContext, ILog logger)
 {
     _resourceService      = resourceService;
     _userResourcesService = userResourcesService;
     _dealService          = dealService;
     _appHub          = hubContext;
     _logger          = logger;
     _pricesGenerator = PricesGenerator.GetInstance(_resourceService, _appHub);
 }
Exemplo n.º 4
0
 public static IPricesGenerator GetInstance(IResourceService resourceService, IHubContext hubContext)
 {
     return(_instance ?? (_instance = new PricesGenerator(resourceService, hubContext)));
 }