//private readonly IXchangeCommands _orderClient;
        //private readonly IBusPublisher _busPublisher;

        //private readonly IBusPublisher _busPublisher;
        public CreateOrderHandler(/*IBusPublisher busPublisher,*/ IOrderCache orderCache, IXchangeCommands orderClient, ITracer tracer, ILogger <CreateOrderHandler> logger)
        {
            _logger     = logger;
            _tracer     = tracer;
            _orderCache = orderCache;
            //_orderClient = orderClient;
            // _busPublisher = busPublisher;
        }
 public HomeViewModel(IEventAggregator events, IOrderFieldsCache fieldsCache, IOrderCache orderCache, IWatchlistCache watchlistCache)
 {
     fieldsCache.InitializationCompleted += FieldsCache_InitializationCompleted;
     _fieldsCache = fieldsCache;
     orderCache.InitializationCompleted += OrderCache_InitializationCompleted;
     _orderCache = orderCache;
     watchlistCache.InitializationCompleted += WatchlistCache_InitializationCompleted;
     _watchlistCache = watchlistCache;
     _events         = events;
 }
        public CacheDataHandler(IInstrumentCache instrumentCache,
                                IOrderBookCache orderBookCache,
                                IPositionCache positionCache,
                                IOrderCache orderCache,
                                ILogger <CacheDataHandler> logger)


        {
            _instrumentCache = instrumentCache;
            _orderBookCache  = orderBookCache;
            _positionCache   = positionCache;
            _orderCache      = orderCache;
            _logger          = logger;
        }
Exemple #4
0
 public CommandExecutionService(IPositionRequestService positionRequestService,
                                IOrderRequestService orderRequestService,
                                IPositionCache positionCache,
                                IOrderCache orderCache,
                                ICommandStore commandStore,
                                ILogger <CommandExecutionService> logger)
 {
     _positionRequestService = positionRequestService;
     _orderRequestService    = orderRequestService;
     _positionCache          = positionCache;
     _orderCache             = orderCache;
     _commandStore           = commandStore;
     _logger = logger;
 }
        public ConfirmMiddleware(IMiddleware next, IOrderCache orderCache) : base(next)
        {
            _orderCache = orderCache;


            HandlerMappings = new[]
            {
                new HandlerMapping
                {
                    ValidHandles  = ExactMatchHandle.For(_positiveResponses.Concat(_negativeResponses).ToArray()),
                    Description   = "Please confirm this order is correct",
                    EvaluatorFunc = ConfirmHandler
                }
            };
        }
        public OrderMiddleware(IMiddleware next, IOrderBuilder orderBuilder, IOrderFormatter orderFormatter,
                               IOrderCache orderCache, IMannersMessageGenerator mannersMessageGenerator) : base(next)
        {
            _orderBuilder            = orderBuilder;
            _orderFormatter          = orderFormatter;
            _orderCache              = orderCache;
            _mannersMessageGenerator = mannersMessageGenerator;

            HandlerMappings = new[]
            {
                new HandlerMapping
                {
                    ValidHandles  = ContainsTextHandle.For("table", "Table", "TABLE"),
                    Description   = "Can I take your order?",
                    EvaluatorFunc = OrderHandler
                }
            };
        }
Exemple #7
0
 public OrdersController(IOrderCache orderCache, ISlackRepository slackRepository)
 {
     _orderCache      = orderCache;
     _slackRepository = slackRepository;
 }
Exemple #8
0
 public OrderManager(IOrderCache cache)
 {
     this.cache = cache;
 }
Exemple #9
0
 public TradeBlotterViewModel(IOrderCache orderCache, IOrderFieldsCache fieldsCache)
 {
     _orderCache  = orderCache;
     _fieldsCache = fieldsCache;
 }